Mixed EOL significance #4775
-
I have to parse code where in some rules EOL matters but in most of them does not. i.e.
so I don't hide EOLs. The above is an excerpt from kickassembler wher code and statements are mixed. The obvious solution would be to populate parser rules with Is there a better solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This answer looks promising https://stackoverflow.com/questions/41667217/antlr4-how-can-i-both-hide-and-use-tokens-in-a-grammar |
Beta Was this translation helpful? Give feedback.
This answer looks promising https://stackoverflow.com/questions/41667217/antlr4-how-can-i-both-hide-and-use-tokens-in-a-grammar