Remove expr/stmt (#5857)

This commit is contained in:
Arne Döring 2017-07-25 09:28:23 +02:00 • committed by Andreas Rumpf
commit 000b8afd26
168 changed files with 497 additions and 529 deletions

View file

@ -1,5 +1,5 @@
import macros
macro case_token(n: stmt): stmt {.immediate.} =
macro case_token(n: untyped): untyped {.immediate.} =
# creates a lexical analyzer from regular expressions
# ... (implementation is an exercise for the reader :-)
nil
@ -18,7 +18,7 @@ case_token: inc i
#bug #488
macro foo: stmt =
macro foo: typed =
var exp = newCall("whatwhat", newIntLitNode(1))
if compiles(getAst(exp)): return exp
else: echo "Does not compute!"