Properties
keywordTable
keyword
Table: Map<string, TokenWord[]> = new Map<string, TokenWord[]>()
Methods
GetToken
- GetToken(source: string): Token
IsComment
- IsComment(source: string): Omit<Token, "tokenClass"> | null
-
Parameters
Returns Omit<Token, "tokenClass"> | null
IsConstant
- IsConstant(source: string): Omit<Token, "tokenClass"> | null
-
Parameters
Returns Omit<Token, "tokenClass"> | null
IsDigitInRadix
- IsDigitInRadix(ch: string, radix: number): boolean
-
Parameters
Returns boolean
IsIdentifier
- IsIdentifier(source: string): Omit<Token, "tokenClass"> | null
-
Parameters
Returns Omit<Token, "tokenClass"> | null
IsKeyWord
- IsKeyWord(source: string): Omit<Token, "tokenClass"> | null
-
Parameters
Returns Omit<Token, "tokenClass"> | null
IsWhiteSpace
- IsWhiteSpace(source: string): Omit<Token, "tokenClass"> | null
-
Parameters
Returns Omit<Token, "tokenClass"> | null
ParseToken
- ParseToken(source: string): Token
Static GetDefinition
- GetDefinition(tokenType: number): string
-
Parameters
Returns string