-
Notifications
You must be signed in to change notification settings - Fork 656
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
[Feature] String Parsing #944
Labels
feature
A new feature.
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature
The goal is to add
string
as a Token and for it to be parsable to AST nodes.Depends on #943.
Motivation
This helps the implementation goal of #929.
Implementation
Tokenizer Side
String Token
Enum should be createdleo/parser/src/tokenizer/token.rs
. This should go under the commented Types section.StringLit Token
Enum should be createdleo/parser/src/tokenizer/token.rs
. This should go under the commented Types section.Parser Side
parse_primary_expression
should match onToken::StringLit
and then parse thestring
to a AST Node ValueExpressionleo/parser/src/parser/expression.rs
.Tests
The text was updated successfully, but these errors were encountered: