lean4-htt/tests/lean/run/macro3.lean
Leonardo de Moura 65dafaf07c fix: stdlib and tests
We also declare a few macros for the syntax command.
2020-11-12 07:12:30 -08:00

6 lines
151 B
Text

syntax "call" term:max "(" sepBy1(term, ",") ")" : term
macro_rules
| `(call $f ($args*)) => `($f $(args.getSepElems)*)
#check call Nat.add (1+2, 3)