lean4-htt/tests/lean/run/macro3.lean
Leonardo de Moura 60a9aa52c5 feat: add Array.getSepElems
cc @Kha
2020-01-18 19:12:44 -08:00

8 lines
165 B
Text

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