12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import { Token } from './ast';
- import { Source } from './source';
- import { TokenKindEnum } from './tokenKind';
- export class Lexer {
- source: Source;
-
- lastToken: Token;
-
- token: Token;
-
- line: number;
-
- lineStart: number;
- constructor(source: Source);
- /**
- * Advances the token stream to the next non-ignored token.
- */
- advance(): Token;
- /**
- * Looks ahead and returns the next non-ignored token, but does not change
- * the state of Lexer.
- */
- lookahead(): Token;
- }
- /**
- * @internal
- */
- export function isPunctuatorToken(token: Token): boolean;
- /**
- * @internal
- */
- export function isPunctuatorTokenKind(kind: TokenKindEnum): boolean;
|