WOOO compiles all in one file! Dependencies resolved! Next up, C name mangeling for scoping

This commit is contained in:
Nathan Braswell
2015-03-11 01:58:10 -04:00
parent 9e9b4371da
commit 6a311fb237
14 changed files with 230 additions and 133 deletions

15
tests/runTests-ninja.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
krakenPath="../build-ninja/kraken"
#testDir=${1:-"../tests"}
testDir="."
ext=${2:-"krak"}
fileList=""
for dir in `find ${testDir} -type f -name "test_*.${ext}"`; do
filename=$(basename ${dir})
filename="${filename%.*}"
fileList+=\ $testDir\/$filename
done
${krakenPath} "--test" ${fileList}

View File

@@ -0,0 +1 @@
hello strings

10
tests/test_string.krak Normal file
View File

@@ -0,0 +1,10 @@
import io;
import string;
|int| main() {
|string::string| str.construct("hello strings");
io::println(str);
return 0;
}

View File

@@ -1,2 +1,3 @@
4
1337
Destroyed!

View File

@@ -14,6 +14,7 @@ typedef AbleToBeDestroyed (Destructable) {
intVec.addEnd(3);
intVec.addEnd(3);
intVec.addEnd(7);
println(intVec.size);
for (|int| i = 0; i < intVec.size; i++;)
print(intVec.at(i));