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

@ -502,7 +502,7 @@ proc base(t: PType): PType =
proc firstOrd(t: PType): biggestInt =
case t.kind
of tyBool, tyChar, tySequence, tyOpenArray:
of tyBool, tyChar, tySequence, tyOpenArray, tyString:
result = 0
of tySet, tyVar:
result = firstOrd(t.sons[0])