c2nim tool added

This commit is contained in:
Andreas Rumpf 2010-07-21 09:44:47 +02:00
commit d10973adb0
28 changed files with 3498 additions and 66 deletions

View file

@ -427,7 +427,7 @@ proc getEscapedChar(L: var TLexer, tok: var TToken) =
case L.buf[L.bufpos]
of 'n', 'N':
if tok.toktype == tkCharLit: lexMessage(L, errNnotAllowedInCharacter)
tok.literal = tok.literal & tnl
add(tok.literal, tnl)
Inc(L.bufpos)
of 'r', 'R', 'c', 'C':
add(tok.literal, CR)