Open bvssvni opened 7 years ago
IIRC yacc has some way around this that requires you to write recursive rules backwards. I.e.
foos = [foos foo]
instead of
foos = [foo foos]
I'm not sure if their trick is still possible to use if your grammars aren't LR(1) or whatever... but maybe a place to draw inspiration from.
Currently, when a rule call itself recursively, it leads to stack overflow.