UNPKG

ebnf-railroad-visualizer

Version:
29 lines (28 loc) 751 B
import { Scanner } from "./Scanner.js"; import { Syntax } from "../wsn/Syntax.js"; export declare class Parser { private readonly scanner; private t; private la; private sym; private idCounter; constructor(scanner: Scanner); parse(): Syntax; private Syntax; private Production; private Identifier; private Expression; private Term; private Factor; private Literal; /** * Checks if the lookahead token has the expected {@link Kind} and scans the next.4 * @param expected expeced kind of lookahead token or unexpected end */ private check; /** * Scans the next token from the input and stores it into {@link la}. */ private scan; private throwError; }