-
Notifications
You must be signed in to change notification settings - Fork 709
feat: termBeforeBy builtin parser
#11495
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
base: master
Are you sure you want to change the base?
Conversation
|
changelog-no |
| disallows `by` outside of a bracketing construct. This is used for parsers like `show p by ...` | ||
| or `suffices p by ...`, where we do not want `p by ...` to be parsed as an application of `p` to a | ||
| `by` block, which would otherwise be allowed. -/ | ||
| def termBeforeBy := withForbidden "by" termParser |
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, since this is not used anywhere yet, you'll have to tag it with @[run_builtin_parser_attribute_hooks] to make the alias work.
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.
We do need to use it in this file, but I had originally left this for the follow-up PR. I've now added the two uses in this PR.
|
Mathlib CI status (docs):
|
|
Reference manual CI status:
|
This PR defines the
termBeforeByparser which we will need in order to increase the precedence of thebyterm parser.