Closed rupy closed 5 years ago
Tree output can only be constructed once a parse succeeds. Otherwise the output is underdetermined, there would be many trees to consider. Have a look at
https://github.com/kschiess/parslet/blob/master/example/deepest_errors.rb
for how to use alternative error reporters. Also - the implementation of that error reporter could be interesting to you; maybe you want to contribute another one?
Hi, I'd like to know if I can access tree output built by "as" at that moment when parse fails. if so, debug becomes much easier.
Any help will be appreciated.