implements first version of for-loop macros

This commit is contained in:
Andreas Rumpf 2018-04-15 01:07:28 +02:00
commit c08efb4c51
4 changed files with 89 additions and 2 deletions

View file

@ -4172,3 +4172,8 @@ when not defined(js):
magic: "Slice".}
proc toOpenArray*(x: string; first, last: int): openarray[char] {.
magic: "Slice".}
type
ForLoopStmt* {.compilerProc.} = object ## special type that marks a macro
## as a `for-loop macro`:idx: