import * as ast from './ast'; import * as Token from './parser'; export default class Lexer implements Token.Lexer { source: string; cursor: number; token: number; value: ast.Node | undefined; constructor(source: string); lex(): number; private _bool; private _null; private _number; private _string; private _name; charAt(cursor: number): string; yytext(): string; yyerror(loc: Token.Location, msg: String): void; reportSyntaxError(ctx: Token.Context): void; getLocation(): Token.Location; }