Class: Interpreter
The TagScript interpreter.
Constructors
new Interpreter()
new Interpreter(...parsers
): Interpreter
Parameters
parsers
...IParser
[]
Returns
Defined in
Properties
parsers
protected
parsers: IParser
[]
Defined in
Methods
addParsers()
addParsers(...parsers
): void
Add more parsers
Parameters
parsers
...IParser
[]
The parsers to add.
Returns
void
Defined in
getAcceptors()
Parameters
ctx
Returns
Defined in
run()
Processes a given TagScript string.
Parameters
message
string
The TagScript string that to be processed.
seedVariables
A object containing strings to transformer to provide context variables for processing.
charLimit
The maximum characters to process.
null
| number
tagLimit
number
= 2_000
The maximum tags to process.
parenType
ParenType
= ParenType.Both
Whether the parameter should be followed after a "." or use parenthesis or both.
keyValues
IKeyValues
= {}
Additional key value pairs that may be used by parsers during parsing.
Returns
- Response class containing the raw string, processed body, actions and variables.
Defined in
setParsers()
setParsers(...parsers
): void
Set new parsers
Parameters
parsers
...IParser
[]
The parsers to set.
Returns
void