Class: Context
Defined in: Interpreter/Context.ts:7
An object containing data of the TagScript tag processed by the interpreter. This class is passed to transformers and parsers during parsing.
Constructors
new Context()
new Context(tag
, response
, interpreter
, originalMessage
): Context
Defined in: Interpreter/Context.ts:25
Parameters
tag
response
interpreter
originalMessage
string
Returns
Properties
interpreter
interpreter: Interpreter
Defined in: Interpreter/Context.ts:23
The interpreter parsing the TagScript.
originalMessage
originalMessage: string
Defined in: Interpreter/Context.ts:18
The original message passed to the interpreter.
response
response: Response
Defined in: Interpreter/Context.ts:13
tag
tag: Lexer
Defined in: Interpreter/Context.ts:11
The tag object representing a TagScript tag.
Methods
toJSON()
toJSON(): object
Defined in: Interpreter/Context.ts:32
Returns
object
interpreter
interpreter: Interpreter
originalMessage
originalMessage: string
response
response: Response
tag
tag: Lexer