-
Notifications
You must be signed in to change notification settings - Fork 1
feat(cosmosdb): add comparison and bitwise shift operators #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -70,6 +70,14 @@ BIT_OR_SYMBOL: '|'; | |||||||||||||||||||||||||||||
| DOUBLE_BAR_SYMBOL: '||'; | ||||||||||||||||||||||||||||||
| BIT_XOR_SYMBOL: '^'; | ||||||||||||||||||||||||||||||
| EQUAL_SYMBOL: '='; | ||||||||||||||||||||||||||||||
| LESS_THAN_OPERATOR: '<'; | ||||||||||||||||||||||||||||||
| LESS_THAN_EQUAL_OPERATOR: '<='; | ||||||||||||||||||||||||||||||
| GREATER_THAN_OPERATOR: '>'; | ||||||||||||||||||||||||||||||
| GREATER_THAN_EQUAL_OPERATOR: '>='; | ||||||||||||||||||||||||||||||
| LEFT_SHIFT_OPERATOR: '<<'; | ||||||||||||||||||||||||||||||
| RIGHT_SHIFT_OPERATOR: '>>'; | ||||||||||||||||||||||||||||||
| ZERO_FILL_RIGHT_SHIFT_OPERATOR: '>>>'; | ||||||||||||||||||||||||||||||
|
Comment on lines
+73
to
+79
|
||||||||||||||||||||||||||||||
| LESS_THAN_OPERATOR: '<'; | |
| LESS_THAN_EQUAL_OPERATOR: '<='; | |
| GREATER_THAN_OPERATOR: '>'; | |
| GREATER_THAN_EQUAL_OPERATOR: '>='; | |
| LEFT_SHIFT_OPERATOR: '<<'; | |
| RIGHT_SHIFT_OPERATOR: '>>'; | |
| ZERO_FILL_RIGHT_SHIFT_OPERATOR: '>>>'; | |
| ZERO_FILL_RIGHT_SHIFT_OPERATOR: '>>>'; | |
| LEFT_SHIFT_OPERATOR: '<<'; | |
| RIGHT_SHIFT_OPERATOR: '>>'; | |
| LESS_THAN_EQUAL_OPERATOR: '<='; | |
| GREATER_THAN_EQUAL_OPERATOR: '>='; | |
| LESS_THAN_OPERATOR: '<'; | |
| GREATER_THAN_OPERATOR: '>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate token definitions.
LESS_THAN_OPERATORandGREATER_THAN_OPERATORare already defined asLA_BRACKET_SYMBOL(line 57) andRA_BRACKET_SYMBOL(line 58). In ANTLR lexers, when multiple token rules match the same input, the first rule wins. This means these operators will never be recognized asLESS_THAN_OPERATORorGREATER_THAN_OPERATOR- they will always be tokenized as bracket symbols.Remove these duplicate definitions and update the parser to reference the bracket symbol tokens instead, or remove the bracket symbol definitions from lines 57-58.