using statement (ala C#) implemented as macro (added as test).

simplified the usage of the interpolatedFragments iterator.
This commit is contained in:
Zahary Karadjov 2011-09-11 21:43:12 +03:00
commit 9acfc43119
5 changed files with 152 additions and 49 deletions

View file

@ -1381,6 +1381,7 @@ proc parseString(s: string, filename: string = "", line: int = 0): PNode =
var parser : TParser
OpenParser(parser, filename, stream)
result = parser.parseAll
CloseParser(parser)