-
|
A lexer rule allows one to match any character in the input stream, e.g., And, while I'm at it, how do I specify a token set with operations such as minus in a parser rule? E.g., ". - TOKEN1" (all token types except TOKEN1, used in the Java Language Specification), or "~(TOKEN1 | TOKEN2)" (all token types except TOKEN1 and TOKEN2)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, I don't think there's another way. Can you explain why you need such a thing?
Lark doesn't support it. Unless you enumerate every token except the ones you want to omit. |
Beta Was this translation helpful? Give feedback.
Yes, I don't think there's another way. Can you explain why you need such a thing?
Lark doesn't support it. Unless you enumerate every token except the ones you want to omit.