UNPKG

langium-cli

Version:

CLI for Langium - the language engineering tool

24 lines 1.06 kB
/****************************************************************************** * Copyright 2025 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. ******************************************************************************/ import { type Grammar } from 'langium'; export declare function generateBnf(grammars: Grammar[], options?: GeneratorOptions): string; /** * Default: GBNF * EBNF doesn't support RegEx terminal rules. */ export type BnfDialect = 'GBNF' | 'EBNF'; /** * By default, comments are generated according to the dialect. * Use this option to force a specific comment style. * Use `parentheses` for `(* comment *)`, `slash` for `/* comment *\/`, `hash` for `# comment` * and `skip` to disable comment generation. */ export type CommentStyle = 'skip' | 'parentheses' | 'slash' | 'hash'; export type GeneratorOptions = { dialect: BnfDialect; commentStyle?: CommentStyle; }; //# sourceMappingURL=bnf-generator.d.ts.map