Class: Lexer
Represents the passed Tag.
Constructors
new Lexer()
new Lexer(
input
,limit
,parenType
):Lexer
Parameters
• input: string
• limit: number
= 2_000
• parenType: ParenType
= ParenType.Both
Returns
Source
lib/Interpreter/Lexer.ts:47
Properties
declaration
declaration:
null
|string
Source
lib/Interpreter/Lexer.ts:25
dotDecDepth
private
dotDecDepth:number
Source
lib/Interpreter/Lexer.ts:35
dotDecStart
private
dotDecStart:number
Source
lib/Interpreter/Lexer.ts:37
parameter
parameter:
null
|string
Source
lib/Interpreter/Lexer.ts:23
parenDecDepth
private
parenDecDepth:number
Source
lib/Interpreter/Lexer.ts:39
parenDecStart
private
parenDecStart:number
Source
lib/Interpreter/Lexer.ts:41
parenType
private
readonly
parenType:ParenType
Source
lib/Interpreter/Lexer.ts:29
parsedInput
private
parsedInput:string
Source
lib/Interpreter/Lexer.ts:31
parsedLength
private
parsedLength:number
Source
lib/Interpreter/Lexer.ts:33
payload
payload:
null
|string
Source
lib/Interpreter/Lexer.ts:27
skipNext
private
skipNext:boolean
Source
lib/Interpreter/Lexer.ts:43
usedParenType
private
usedParenType:ParenType
Source
lib/Interpreter/Lexer.ts:45
Methods
closeParameter()
private
closeParameter(index
):boolean
Parameters
• index: number
Returns
boolean
Source
lib/Interpreter/Lexer.ts:141
lex()
private
lex(input
,limit
):void
Parameters
• input: string
• limit: number
Returns
void
Source
lib/Interpreter/Lexer.ts:74
openParameter()
private
openParameter(index
,type
):void
Parameters
• index: number
• type: ParenType
= undefined
Returns
void
Source
lib/Interpreter/Lexer.ts:134
parseDotParameter()
private
parseDotParameter(index
,token
):boolean
Parameters
• index: number
• token: string
Returns
boolean
Source
lib/Interpreter/Lexer.ts:109
parseParameter()
private
parseParameter(index
,token
):boolean
Parameters
• index: number
• token: string
Returns
boolean
Source
lib/Interpreter/Lexer.ts:101
parseParenthesisParameter()
private
parseParenthesisParameter(index
,token
):boolean
Parameters
• index: number
• token: string
Returns
boolean
Source
lib/Interpreter/Lexer.ts:119
setPayload()
private
setPayload():void
Returns
void
Source
lib/Interpreter/Lexer.ts:127
toJSON()
toJSON():
object
Returns
object
declaration
declaration:
null
|string
parameter
parameter:
null
|string
payload
payload:
null
|string
usedParenType
usedParenType:
ParenType
Source
lib/Interpreter/Lexer.ts:65
toString()
toString():
string
Returns
string
Source
lib/Interpreter/Lexer.ts:55