-
Notifications
You must be signed in to change notification settings - Fork 361
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
Switch to pest parser #306
Conversation
Remove strings from absy
Enforce boolean in function parameters
Remove strings from typed_absy
let private = param | ||
.visibility | ||
.map(|v| match v { | ||
pest::Visibility::Private(_) => true, |
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.
I found it surprising that the visibilities are represented as structs in the zokrates_pest_ast. Since it's converted to bool here, it's fine as isolated from core.
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.
For reference, this is done because we don't want to parse this ourselves, so creating a rule and an associated struct works.
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.
Good to go. Issues created for open points.
Todo