This commit is contained in:
Dominik Picheta 2014-04-20 21:54:59 +01:00
commit 57cc8237f7
3 changed files with 26 additions and 10 deletions

View file

@ -0,0 +1,19 @@
discard """
msg: '''
Infix
Ident !"=>"
Call
Ident !"name"
Ident !"a"
ExprColonExpr
Ident !"b"
Ident !"cint"
NilLit nil
'''
"""
import macros
macro def(x: stmt): stmt {.immediate.} =
echo treeRepr(x)
def name(a, b:cint) => nil