You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a little trouble here also, I'm trying to create a grammar where newlines delimit statements, but there seems to be some implicit consumption of whitespace, my syntax only works with a delimiter other than "\n".
Yes, all of the lexers that LALRPOP generate assume whitespace is insignificant. Lifting this is the subject of https://github.com/nikomatsakis/lalrpop/issues/14. Probably one of the biggest remaining obstacles to 1.0 -- I just can't decide how I want it to work, among other things. :(
The only workaround right now is to hand-write a lexer, or else use a tool like https://github.com/LeoTestard/rustlex -- and indeed I think one short-term "fix" for #14 might just be more seamless "rustlex" integration (though I still want something more long-term).
I am puzzled by how the library handles whitespace. I have the following syntax:
I have a unit test where it tests the syntax for " Word". It passes. Why is this? It should fail.
The text was updated successfully, but these errors were encountered: