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

8 lines
153 B
Text

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