TypeFox / chevrotain-allstar

Plugin module for the ALL(*) lookahead algorithm in Chevrotain
MIT License
10 stars 0 forks source link

[Feature request] Easier debugging #4

Open matthew-dean opened 1 year ago

matthew-dean commented 1 year ago

One thing that's nice about Chevrotain is the debugging experience. You can set breakpoints in VSCode and step through and see is it makes "decisions" about which path to take. WIth a relatively small lookahead, these are easy to grok.

However, I'm finding that with this lookahead strategy, it's much harder to discern why Chevortain didn't take a certain path. It would be nice if there was a way to log (or inspect?) why a subrule wasn't chosen or was determined not to match the input.

Is something like that possible?