-
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 Abstract Syntax #943
Comments
I don't believe we need to extend the https:/AleoHQ/leo/blob/master/docs/rfc/001-initial-strings.md#strings |
The reason I made this issue was based on the slack discussion. When seeing the syntax |
Yes, we need an AST node for string literals (which canonicalization will convert to an array inline expression), which you list as 'A ValueExpression extension that contains the char Node type leo/ast/src/expression/value.rs.'. I was referring to the first item, 'New addition to the Type Enum leo/ast/src/types/types_.rs'. |
That second part should say |
Ah, wait, I see what you mean. Hmmm, I think that should be fine. I won't really know till implementation if that will cause an issue or not. |
Closed by #957. |
🚀 Feature
The abstract syntax tree needs to be extended with a
string
type.Motivation
This helps the implementation goal of #929.
Implementation
As for reducers, a dummy implementation will be needed, or when this branch is ready, we can pull this one in. Till the reducers are resolved, compilation will fail, though.
The
string
type will be converted to an array at the canonicalization phase.The Following is necessary:
AST Side
string
Node typeleo/ast/src/expression/value.rs
.ASG Side
The ASG expects a canonicalized version; therefore, the
string
should already be an array of characters by this point, and nothing new should be necessary here.Tests
No test possible till both reducers and parser + lexer is in.
The text was updated successfully, but these errors were encountered: