lean4-htt/tests/lean/run/macro3.lean
2020-12-12 17:20:03 +01:00

6 lines
138 B
Text

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