lean4-htt/tests/lean/242.lean.expected.out
Kyle Miller 3e4fa12c72
feat: add unicode(...) parser syntax and pp.unicode option (#10373)
This PR adds a `pp.unicode` option and a `unicode("→", "->")` syntax
description alias for the lower-level `unicodeSymbol "→" "->"` parser.
The syntax is added to the `notation` command as well. When `pp.unicode`
is true (the default) then the first form is used when pretty printing,
and otherwise the second ASCII form is used. A variant, `unicode("→",
"->", preserveForPP)` causes the `->` form to be preferred; delaborators
can insert `→` directly into the syntax, which will be pretty printed
as-is; this allows notations like `fun` to use custom options such as
`pp.unicode.fun` to opt into the unicode form when pretty printing.

Additionally:
- Adds more documentation for the `symbol` and `nonReservedSymbol`
parser descriptions.
- Adds documentation for the
`infix`/`infixr`/`infixl`/`prefix`/`postfix` commands.
- The parenthesizers for symbols are improved to backtrack if the atom
doesn't match.
- Fixes a bug where `&"..."` symbols aren't validated.

This is partial progress for issue #1056. What remains is enabling
`unicode(...)` for mixfix commands and then making use of it for core
notation.
2025-09-14 04:40:03 +00:00

16 lines
640 B
Text

242.lean:1:7-1:10: error: invalid atom
242.lean:2:7-2:12: error: invalid atom
242.lean:3:7-3:11: error: invalid atom
242.lean:4:7-4:12: error: invalid atom
242.lean:5:7-5:11: error: invalid atom
242.lean:6:7-6:13: error: invalid atom
242.lean:7:7-7:12: error: invalid atom
242.lean:8:7-8:13: error: invalid atom
242.lean:10:8-10:11: error: invalid atom
242.lean:11:8-11:13: error: invalid atom
242.lean:12:8-12:12: error: invalid atom
242.lean:13:8-13:13: error: invalid atom
242.lean:14:8-14:12: error: invalid atom
242.lean:15:8-15:14: error: invalid atom
242.lean:16:8-16:13: error: invalid atom
242.lean:17:8-17:14: error: invalid atom