lean4-htt/tests/lean/run/mixedMacroRules.lean
2020-10-25 09:16:38 -07:00

11 lines
180 B
Text

syntax:65 term "+!+" term:65 : term
syntax:70 term "*!*" term:70 : term
macro_rules
| `($a +!+ $b) => `($a + $b)
| `($a *!* $b) => `($a * $b)
#check 10 +!+ 20
#check 10 *!* 20