ebnf-railroad-visualizer
Version:
A web-based EBNF railroad diagram visualizer
13 lines (12 loc) • 364 B
TypeScript
import { Production } from './Production.js';
import { Sym } from '../scannerparser/Sym.js';
/**
* A syntax is a sequence of productions defined as:
*
* `SYNTAX = PRODUCTION { PRODUCTION } .`
*/
export declare class Syntax extends Sym {
readonly productions: Production[];
constructor(productions: Production[], id?: number);
toString(): string;
}