Token value comparators #15
Replies: 4 comments 5 replies
-
I guess we would only want to support equality operators ? No need for <, <=, > or >= ? |
Beta Was this translation helpful? Give feedback.
-
To me this seems something easy to learn and very useful in practice. I am not sure if it can solve all problems with contextual tokens (as I do not know enough about the contextual tokens problem), but it seems to me that it can certainly cover many cases with a clear solution. So I think it would be great to have this. |
Beta Was this translation helpful? Give feedback.
-
The operator bit sounds easy enough, but where things might become complicated is with the LHS and the RHS ? |
Beta Was this translation helpful? Give feedback.
-
This is an alternative approach to address contextual tokens.
See antlr/antlr4#1965 for context.
@KvanTTT please feel free to propose a draft spec
Beta Was this translation helpful? Give feedback.
All reactions