@ts-jison/ebnf-parser
Version:
A parser for BNF and EBNF grammars used by jison
26 lines • 1.07 kB
TypeScript
import { JisonParser, JisonParserApi, StateType, SymbolsType, TerminalsType, ProductionsType } from '@ts-jison/parser';
/**
* parser generated by @ts-jison/parser-generator 0.3.0
* @returns Parser implementing JisonParserApi and a Lexer implementing JisonLexerApi.
*/
export declare class EbnfParser extends JisonParser implements JisonParserApi {
$?: any;
symbols_: SymbolsType;
terminals_: TerminalsType;
productions_: ProductionsType;
table: Array<StateType>;
defaultActions: {
[key: number]: any;
};
constructor(yy?: {}, lexer?: EbnfLexer);
performAction(yytext: string, yyleng: number, yylineno: number, yy: any, yystate: number, $$: any, _$: any): any;
}
import { JisonLexer, JisonLexerApi } from '@ts-jison/lexer';
export declare class EbnfLexer extends JisonLexer implements JisonLexerApi {
options: any;
constructor(yy?: {});
rules: RegExp[];
conditions: any;
performAction(yy: any, yy_: any, $avoiding_name_collisions: any, YY_START: any): any;
}
//# sourceMappingURL=ebnf-parser.d.ts.map