botbook/node_modules/ebnf/dist/Grammars/Custom.d.ts
Rodrigo Rodriguez 6ae15fe3e5 Updated.
2024-09-04 13:13:15 -03:00

14 lines
552 B
TypeScript

import { IRule, Parser as _Parser } from '../Parser';
import { IGrammarParserOptions } from './types';
declare namespace BNF {
const RULES: IRule[];
const defaultParser: _Parser;
function emit(parser: Parser): string;
function getRules(source: string, parser?: _Parser): IRule[];
function Transform(source: TemplateStringsArray, subParser?: _Parser): IRule[];
class Parser extends _Parser {
constructor(source: string, options?: Partial<IGrammarParserOptions>);
emitSource(): string;
}
}
export default BNF;