Need something to make debugging a grammar easier #19

Closed
opened 5 years ago by bkovitz · 3 comments
bkovitz commented 5 years ago (Migrated from github.com)

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.

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`](https://docs.racket-lang.org/br-parser-tools/LALR_1__Parsers.html?q=debug). 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 (Migrated from github.com)

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

`brag` is mostly just a front end to [`cfg-parser`](https://docs.racket-lang.org/br-parser-tools/Context-Free_Parsers.html?q=debug). AFAICT the `debug` option is not part of that parser.
mbutterick commented 5 years ago (Migrated from github.com)

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

“The `cfg-parser` form does not support the `precs`, `suppress`, `debug`, or `yacc-output` options of `parser`.”
mbutterick commented 5 years ago (Migrated from github.com)

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

Therefore this issue belongs in [`parser-tools`](https://github.com/racket/parser-tools). If it’s fixed there, I can propagate it to `br-parser-tools`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/brag#19
Loading…
There is no content yet.