Open nichtich opened 1 month ago
This has been done but needs to be proofread and tested whether the grammar fully matches the specification text. Maybe better fully convert the grammar to W3C EBNF and generate another parser from the source (see https://www.npmjs.com/package/ebnf and https://www.bottlecaps.de/rr/ui). In particular the END
token and negative lookeahead operator need to be changed.
Question is whether to make it normative or not. Existing grammars to build on are at https://github.com/pg-format/pg-formatter/blob/main/docs/grammar.md (preferred ~but rule
Edge
needs to be adjusted by hand~) and at https://github.com/pg-format/pgraphs/blob/main/docs/pg-grammar.mdNames of symbols used in the grammar should be same as names used in the specification text, e.g.
Identifier
instead ofID
.