-
Notifications
You must be signed in to change notification settings - Fork 8
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
Parse improvements rebase #29
Conversation
Should the parser parse unit types? In nushell's current parser, it seems like units are parsed specially, but not parsed as
|
Ah, I checked it via |
I think it's actually just an empty sub-expression. For example, |
Yeah we don't have that "unit type" notion from Rust. Maybe we should iterate a bit on how the empty expression is handled to make checking for it easier but as of now, I don't think it makes sense to add it to the type system. |
Ah, but without that it simply throws a compile error as of now. |
I'll review it later, but IMO empty subexpression should evaluate to |
Just to clear everyone, I've only added a new AST Node, it still evaluates to |
I would think |
I think the above should work, but I'm not really sure of when to give the type as |
If you're asking about when a node should return |
Sorry for the merge conflicts, you can add these to the updated parser without too much effort, just replace |
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
Signed-off-by: innocentzero <[email protected]>
42a8e44
to
c8219cb
Compare
@kubouch have a look. Should be good to go ig. |
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.
Some small details, looks good otherwise.
Signed-off-by: innocentzero <[email protected]>
@kubouch apologies for the delay. Should be good now. |
OK, thanks! |
Supersedes #24 as it had too many merge conflicts with main.