Igor Dejanović
Igor Dejanović
@hosford42 Yes, I did a rework on a `language-def-redesign` branch but there was a different in a way import system is working so I was reluctant to merge to master...
I just need to warn you that there is an important rework of GLR algorithm on `master` I did recently that greatly improves handling of ambiguous grammar (e.g. natural languages)....
Yes, you understood correctly.
Yes, you are right. This actually should be corrected for the syntactic sugar transformation for `*` also, in both docs and implementation. Thanks for reporting.
Nope, I was wrong. Syntactic sugar transformations seem correct. I think that `collect_optional` and `collect_sep_optional` should be removed as those are obviously wrong as you noticed and both should be...
Your second example seems incomplete. How do you reduce first `OneOrMoreElements`?
It is pretty much similar to some classic text book examples. First example: ```python g = Grammar.from_string(r''' Elements: Elements Element | EMPTY; terminals Element: /[abc]/; ''') Parser(g).parse('a b c') #...
Ah, ok I understand. I guess it is not documented but will need to check. The rule of the thumb is that each rule on the RHS will produce a...
BTW, `Elems: Elems Elem | EMPTY ;` is actually a `zero or more` as `EMPTY` is a valid reduction for `Elems`. The exact grammar pattern is usually related to the...
Just a bit more clarification. Built-in actions in parglare are not different than any other user written action. You can see the implementation [here](https://github.com/igordejanovic/parglare/blob/master/parglare/actions.py), so in order to be used...