Skip to content

core/odin: fold ternary-opeartor keyword special-casing into is_operator - #7411

Open
vivere-dally wants to merge 1 commit into
odin-lang:masterfrom
vivere-dally:refactor/simplify-expect-operator
Open

core/odin: fold ternary-opeartor keyword special-casing into is_operator#7411
vivere-dally wants to merge 1 commit into
odin-lang:masterfrom
vivere-dally:refactor/simplify-expect-operator

Conversation

@vivere-dally

Copy link
Copy Markdown

I was reading through the parser logic because I am working on a toy lang and I wanted to learn some patterns, and I observed that expect_operator was checking if the token is an operator, and the tokenizer method was a fallback which also checked for .If. Made the change locally, the tests are passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant