Properties
info
info: object
Type declaration
-
errors: Array<any>
-
time: object
Methods
expect
- expect(type: Tokenize.TokenType | string, value?: string): void
-
Parameters
-
type: Tokenize.TokenType | string
-
Optional value: string
Returns void
lookBack
- lookBack(peek: number): Token
match
- match(type: Tokenize.TokenType | string, value?: string): boolean
-
Parameters
-
type: Tokenize.TokenType | string
-
Optional value: string
Returns boolean
matchAny
- matchAny(array: Array<Array<any>>): boolean
-
Parameters
Returns boolean
parse
- parse(driver: any, parser: Object): object
-
Parameters
-
driver: any
-
parser: Object
Returns object
peek
- peek(peek?: number): Token
-
Parameters
-
Default value peek: number = 0
raise
- raise(message?: string, type?: string): void
-
Parameters
-
Optional message: string
-
Optional type: string
Returns void