summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-11-07 22:20:48 +0000
committerPaul Buetow <paul@buetow.org>2008-11-07 22:20:48 +0000
commitd0122e88576f6b05e4142df3a0b25735f5e82e29 (patch)
treecbf8c778dcc884e8ffbccc40e6414f3b5352e4b6
parentc33e87f7b07553e999db94ca0ac6529ed1816332 (diff)
-rw-r--r--Makefile8
-rwxr-xr-xfypebin456748 -> 456748 bytes
-rw-r--r--src/build.h2
-rw-r--r--test.out11
4 files changed, 16 insertions, 5 deletions
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
--- a/fype
+++ b/fype
Binary files 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