Charles Esterbrook

Results 12 comments of Charles Esterbrook

Even when not in debug mode, `/[A-Z]+\-\d+/` is still more informative than `__ANON_17`. But if you stick with `ANON`, then can we get them numbered by their line and column...

CamelCase terminals would be very nice. I personally hate SCREAMING_CAPS

In general, I'm using `debug` because I'm in "development mode" instead of "release mode". More specifically, when I was using LALR instead of Earley, I was benefiting from the `if...

Maybe the next step is official docs on what can be expected during `debug=True`?

Thanks. I was thinking it could say what the extra info and warnings are. Like unused rules, shift/reduce conflicts, etc.

This could go in the docs somewhere if it's not already there.

Cool, then I think this ticket can be closed.

I have created a standalone example containing functions `tree_to_json_str` and `tree_to_json`: https://gist.github.com/charles-esterbrook/9ab557d70391fd85ebac2b1a59a326cf You can adapt to your needs. Another approach would be to convert the tree to Python data and...

I feel like Lark has potential to help find ambiguities in grammars. Specifically, you could set parser='earley' and ambiguity='explicit', then see what `_ambig` trees are produced for your various test...

> Unfortunately, when returning a bool for something that actually has 3 states (contains, not contains, touching) it's always going to be ambiguous. That said, MonoGame is the source of...