diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rwxr-xr-x | fype | bin | 456748 -> 456748 bytes | |||
| -rw-r--r-- | src/build.h | 2 | ||||
| -rw-r--r-- | test.out | 11 |
4 files changed, 16 insertions, 5 deletions
@@ -67,17 +67,17 @@ stats: stats-tofile: make stats | tee ./docs/stats.txt testrun: - cat ./tmp/test.fy > ./tmp/test.out - ./$(BIN) -V ./tmp/test.fy | tee -a ./tmp/test.out + cat ./test.fy > ./test.out + ./$(BIN) -V ./test.fy | tee -a ./test.out tr: testrun test: all testrun t: test run: - ./$(BIN) ./tmp/test.fy + ./$(BIN) ./test.fy core: gdb $(BIN) $(BIN).core gdb: - gdb --args $(BIN) ./tmp/test.fy + gdb --args $(BIN) .//test.fy newline: @echo examples: all Binary files differdiff --git a/src/build.h b/src/build.h index 3bfad5c..d691dcb 100644 --- a/src/build.h +++ b/src/build.h @@ -35,7 +35,7 @@ #ifndef BUILD_H #define BUILD_H -#define BUILDNR 9610 +#define BUILDNR 9612 #define OS_FREEBSD #endif diff --git a/test.out b/test.out new file mode 100644 index 0000000..0e2531d --- /dev/null +++ b/test.out @@ -0,0 +1,11 @@ +#* + * Examples of how to use arrays + *# + +say ["string"]; +Token (id=00000, line=00005, pos=0004, type=TT_IDENT, val=say, ival=0, dval=0.000000, refs=1) +Token (id=00001, line=00005, pos=0006, type=TT_PARANT_AL, val=[, ival=0, dval=0.000000, refs=1) +Token (id=00002, line=00005, pos=0006, type=TT_STRING, val=string, ival=0, dval=0.000000, refs=1) +Token (id=00003, line=00005, pos=0008, type=TT_PARANT_AR, val=], ival=0, dval=0.000000, refs=1) +Token (id=00004, line=00005, pos=0009, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1) +string |
