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

@ -0,0 +1,16 @@
# Test enum with explicit size
type
TEnumHole {.size: sizeof(int).} = enum
eA = 0,
eB = 4,
eC = 5
var
e: TEnumHole = eB
case e
of eA: echo "A"
of eB: echo "B"
of eC: echo "C"

View file

@ -3,6 +3,7 @@ tambsym2.nim;7
tambsys.nim;
tarray.nim;10012
tarray2.nim;[16, 25, 36]
tarray3.nim;3
tassert.nim;assertion failure!this shall be always written
tbind1.nim;3
tbind3.nim;1

1 tack.nim 125
3 tambsys.nim
4 tarray.nim 10012
5 tarray2.nim [16, 25, 36]
6 tarray3.nim 3
7 tassert.nim assertion failure!this shall be always written
8 tbind1.nim 3
9 tbind3.nim 1

View file

@ -0,0 +1,7 @@
# simple check for two dimensional arrays
const
myData = [[1,2,3], [4, 5, 6]]
echo myData[0][2] #OUT 3