Lexer
Class: Lexer
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:40
Represents the passed Tag.
Constructors
Constructor
new Lexer(input, limit?, parenType?): Lexer
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:79
Parameters
input
string
limit?
number = 2_000
parenType?
ParenType = ParenType.Both
Returns
Lexer
Properties
declaration
declaration: string | null
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:43
parameter
parameter: string | null
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:41
payload
payload: string | null
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:45
spans
spans: TagSpans
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:51
Where each part of this tag sits in the original text. Needed by anything that highlights or edits a template rather than just rendering it.
Methods
toJSON()
toJSON(): object
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:102
Returns
object
declaration
declaration: string | null
parameter
parameter: string | null
payload
payload: string | null
usedParenType
usedParenType: ParenType
toString()
toString(): string
Defined in: packages/tagscript/src/lib/Interpreter/Lexer.ts:88
Returns
string