c2nim tool added
This commit is contained in:
parent
c441cdb64c
commit
d10973adb0
28 changed files with 3498 additions and 66 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue