How can I make exceptions to the whitespace rule? #769
-
I want my parser to ignore every whitespace and newline except between two expressions or after a use statement. I'm sure I can work the two subsequent expressions out but how do I make exceptions to the whitespace rule? I've thought about using the stack here to as in adding a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I guess defining rules as atomic and non-atomic can help: http://pest.rs/book/grammars/syntax.html#implicit-whitespace ? |
Beta Was this translation helpful? Give feedback.
I guess defining rules as atomic and non-atomic can help: http://pest.rs/book/grammars/syntax.html#implicit-whitespace ?