Skip to content
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

Add Odin lexer #802

Merged
merged 3 commits into from
Jul 19, 2023
Merged

Add Odin lexer #802

merged 3 commits into from
Jul 19, 2023

Conversation

iansimonson
Copy link
Contributor

Adds the odin.xml rules for parsing Odin syntax along with odin.actual and odin.expected

Should handle the majority of Odin syntax well enough including nested comments. Currently, I have attributes as one token rather than sub-lexing the @(x = y) as it's a couple different optional cases.

I think I followed the lexers/README.md properly but let me know if not

Adds the odin.xml rules for a lexer along with odin.actual and
odin.expected

Should handle the majority of Odin syntax well enough including nested comments.
However for now I have just left attributes as one token rather than sub-parsing
the @(x = y) to be multiple tokens
These upated when I was generating odin.expected. I am
not sure if it is better to update these as well or leave it
so I figured I would leave for now
Odin has a number of other built in integer types that are not
in most other languages. Make sure those are included
@alecthomas alecthomas merged commit e1e698d into alecthomas:master Jul 19, 2023
2 checks passed
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.

None yet

2 participants