gll
gll copied to clipboard
JSON encoding of unambiguous parse trees.
The fields would show up in the same way they do in the grammar itself, ignoring the heuristic to view some rules as enums, and their top-level fields as variants. A TypeScript type expression for the JSON data can also be provided automatically.