From d0122e88576f6b05e4142df3a0b25735f5e82e29 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 7 Nov 2008 22:20:48 +0000 Subject: --- Makefile | 8 ++++---- fype | Bin 456748 -> 456748 bytes src/build.h | 2 +- test.out | 11 +++++++++++ 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 test.out diff --git a/Makefile b/Makefile index 0ab034a..d7a9f87 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/fype b/fype index a9bbf97..50639bf 100755 Binary files a/fype and b/fype differ diff --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 -- cgit v1.2.3