-
Notifications
You must be signed in to change notification settings - Fork 34
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
Enriched and unified syntax for reduction strategies #85
base: master
Are you sure you want to change the base?
Conversation
red_expr ::= red_name pattern_opt flags_opt | ||
red_name ::= "cbv" | "cbn" | "lazy" | "simpl" | ||
pattern ::= CONSTR | ||
flags ::= "with" head_flag_opt flag_list unfold_bases |
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.
why is head_flag separate? Is there something wrong with writing eg with beta head
?
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 don't remember if there was a technical reason or just because I was thinking at head
as a modifier of a different nature than the flags.
text/unified-reduction-strategies.md
Outdated
flag ::= "beta" | "iota" | "zeta" | "match" | "fix" | "cofix" | "delta" | ||
unfold_bases ::= "+" unfold_base signed_unfold_base_list | signed_unfold_base_list | ||
signed_unfold_base ::= unfold_base | "-" unfold_base | ||
unfold_base ::= "[" QUALID_list "]" | IDENT constraint_opt | module "(" QUALID ")" |
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.
is this supposed to be
unfold_base ::= "[" QUALID_list "]" | IDENT constraint_opt | module "(" QUALID ")" | |
unfold_base ::= "[" QUALID_list "]" | IDENT constraint_opt | "module" "(" QUALID ")" |
?
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.
Right
text/match-with-alias.md
Outdated
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.
unrelated?
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.
Sorry, the usual bad habit of starting a new branch on top of the previous one.
Co-authored-by: Gaëtan Gilbert <[email protected]>
ef1a3b9
to
422e17f
Compare
In particular, the proposed syntax has:
Rendered here.