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
notations are not printed correctly #358
Comments
This is the current heuristic for deriving a pretty printer from a notation: lean4/src/Lean/Elab/Syntax.lean Lines 443 to 445 in 19b24e3
It does not yet handle constant arguments like (cell_level := 1)
|
@Kha Will this ever be fixed? The |
@leodemoura In theory, |
The `#help` command can be used to list all definitions in a variety of extensible aspects of lean. * `#help option` lists options (used in `set_option myOption`) * `#help attr` lists attributes (used in `@[myAttr] def foo := ...`) * `#help cats` lists syntax categories (like `term`, `tactic`, `stx` etc) * `#help cat C` lists elements of syntax category C * `#help term`, `#help tactic`, `#help conv` are shorthand for `#help cat term` etc. All forms take an optional identifier to narrow the search; for example `#help option pp` shows only `pp.*` options. This command depends on several unmerged lean core PRs to add the necessary APIs to support these queries: * [x] Depends on leanprover#1384 (to get docstrings for attributes) * [x] Depends on leanprover#1391 (polyfill provided) * [x] Depends on leanprover#1392 (to enumerate syntax in a syntax category, without which `#help cat` doesn't work at all)
Prerequisites
Description
Why is it that the parsing works fine, but the notations are not reprinted?
Versions
Lean (version 4.0.0-nightly-2021-03-19, commit 1af02dc, Release)
The text was updated successfully, but these errors were encountered: