-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Leo] Add hexadecimal, octal, binary numerals. #70
Conversation
Based on discussion at Leo sync.
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.
Added some suggested changes.
Also we should think more about how to handle negative literals such as i8
and field and scalar and maybe group (group coordinate has a literal "-", is group coordinate still used?).
If we are handling them as unary minus operator, it looks to me like the grammar doesn't support that.
Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com> Signed-off-by: Alessandro Coglio <2409151+acoglio@users.noreply.github.com>
Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com> Signed-off-by: Alessandro Coglio <2409151+acoglio@users.noreply.github.com>
Co-authored-by: Eric McCarthy <7607035+bendyarm@users.noreply.github.com> Signed-off-by: Alessandro Coglio <2409151+acoglio@users.noreply.github.com>
Group coordinates are still in use. |
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.
Looks good!
@@ -375,7 +394,8 @@ unary-expression = postfix-expression | |||
/ "!" unary-expression | |||
/ "-" unary-expression | |||
|
|||
cast-expression = unary-expression %s"as" named-primitive-type | |||
cast-expression = unary-expression |
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.
Just curious; was cast-expression
previously not including a plain unary-expression
alternative just an oversight?
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.
Yes, an oversight indeed. It was not following the same hierarchical pattern as the other kinds of expressions.
lgtm |
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.
LGTM!
This passes all the usual ACL2 checks.