parseman 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * EBNF (W3C-style) text emitter for the grammar spec model.
3
+ *
4
+ * Precedence, lowest → highest: alternation (`|`) < concatenation (space) <
5
+ * postfix (`* + ?`) < atom. The renderer parenthesizes only where a lower-
6
+ * precedence construct sits inside a higher-precedence one.
7
+ */
8
+ import type { SpecModel, SpecNode } from './model.ts';
9
+ /** Render the whole spec model as EBNF text (one production per line). */
10
+ export declare function renderEBNF(model: SpecModel): string;
11
+ /** Render a single production's right-hand side (no `name ::=`). */
12
+ export declare function renderExpr(node: SpecNode): string;
13
+ //# sourceMappingURL=ebnf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ebnf.d.ts","sourceRoot":"","sources":["../../src/spec/ebnf.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAc,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AA+EjE,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAEnD;AAED,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEjD"}