lean4-htt/tests/lean/run/macro3.lean
2020-01-17 18:07:58 -08:00

8 lines
166 B
Text

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