code gen bugfixes; marshal.nim implemented

This commit is contained in:
Araq 2011-06-26 17:21:52 +02:00
commit 990dc2d715
21 changed files with 725 additions and 422 deletions

View file

@ -145,8 +145,7 @@ proc escape*(s: string): string =
## ``&`` ``&``
## ``"`` ``"``
## ------------ -------------------
result = newString(s.len)
setLen(result, 0)
result = newStringOfCap(s.len)
addEscaped(result, s)
proc addIndent(result: var string, indent: int) =