Yes.
import macros
macro cfor(stm,bdy:untyped):untyped =
echo "semicolon:"
echo " stm: ",stm.lisprepr
echo " bdy: ",bdy.lisprepr
macro cfor(stms:varargs[untyped]):untyped =
echo "varargs:"
for c in stms:
echo " ",c.lisprepr
cfor (i=0;i<4;++i): # the space between cfor and ( is important
echo i
cfor(i=0,i<4,++i):
echo i
Run
- Passing more than one parenthesis block to macro Lachu
- Re: Passing more than one parenthesis block to macro jxy
