mbutterick / brag

Racket DSL for generating parsers from BNF grammars [moved to https://git.matthewbutterick.com/mbutterick/brag]
https://git.matthewbutterick.com/mbutterick/brag
MIT License
61 stars 12 forks source link

Need something to make debugging a grammar easier #19

Closed bkovitz closed 5 years ago

bkovitz commented 5 years ago

Regardless of whether the preceding issue is really a bug, it would help enormously to have something like yydebug in yacc or (debug filename) in br-parser-tools/yacc. If I could see the possible parses in progress as the parser consumes tokens, that would be plenty. Even just being able to look at the generated parsing table might help.

mbutterick commented 5 years ago

brag is mostly just a front end to cfg-parser. AFAICT the debug option is not part of that parser.

mbutterick commented 5 years ago

“The cfg-parser form does not support the precs, suppress, debug, or yacc-output options of parser.”

mbutterick commented 5 years ago

Therefore this issue belongs in parser-tools. If it’s fixed there, I can propagate it to br-parser-tools.