Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Trouble flattening lists #16
Any idea how to do list flattening in a straightforward way with nested rules? If I use the construct below with the input "foo1 foo2 foo3" and then call the value method on my tree, I get "Stack level too deep". Seems that Things will call the morethings method on itself instead of on the matched substring. This appears to be a bug, but maybe I've missed something here...
I can make it work if I add a second rule so that the two rules alternate, but it sure does make the grammar file ugly!