UNPKG

ebnf-railroad-visualizer

Version:
15 lines (14 loc) 548 B
import { Sym } from '../scannerparser/Sym.js'; import { Identifier } from './Identifier.js'; import { Expression } from './Expression.js'; /** * A Production is a rule that defines how a non-terminal symbol is expanded into a sequence of terminal and/or non-terminal symbols. Defined as: * * `PRODUCTION = IDENTIFIER "=" EXPRESSION "." .` */ export declare class Production extends Sym { readonly ident: Identifier; readonly expr: Expression; constructor(ident: Identifier, expr: Expression, id?: number); toString(): string; }