summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-10-30 15:21:41 +0000
committerPaul Buetow <paul@buetow.org>2009-10-30 15:21:41 +0000
commitd02a747ee8d7c1347a3bb2be2517ac280a55b97d (patch)
tree602cec01b39390c005f8b788a46ebd1d762394bd
parenta19e7caed9e54b3e601f32617c909f856dfec265 (diff)
-rw-r--r--docs/help.txt2
-rw-r--r--docs/stats.txt6
-rw-r--r--docs/version.txt2
-rw-r--r--examples/assert.fy14
-rwxr-xr-xfypebin526969 -> 526969 bytes
-rw-r--r--src/build.h2
6 files changed, 20 insertions, 6 deletions
diff --git a/docs/help.txt b/docs/help.txt
index be79117..1a51272 100644
--- a/docs/help.txt
+++ b/docs/help.txt
@@ -1,4 +1,4 @@
-Fype Superalpha Build 9667
+Fype Superalpha Build 9668
(c) Paul C. Buetow (2005 - 2008) <fype@dev.buetow.org>
-e Executes given code string (see synopses)
-h Prints this help
diff --git a/docs/stats.txt b/docs/stats.txt
index 44d1b38..a4fbb65 100644
--- a/docs/stats.txt
+++ b/docs/stats.txt
@@ -1,4 +1,4 @@
===> Num of C source files : 46
-===> Num of C source lines : 8225
-===> Num of Fype source examples : 14
-===> Num of Fype source lines : 362
+===> Num of C source lines : 8227
+===> Num of Fype source examples : 15
+===> Num of Fype source lines : 376
diff --git a/docs/version.txt b/docs/version.txt
index 439f620..c269987 100644
--- a/docs/version.txt
+++ b/docs/version.txt
@@ -1 +1 @@
-Fype Superalpha Build 9667
+Fype Superalpha Build 9668
diff --git a/examples/assert.fy b/examples/assert.fy
new file mode 100644
index 0000000..d9871f5
--- /dev/null
+++ b/examples/assert.fy
@@ -0,0 +1,14 @@
+#*
+ * Examples of how to use asserts
+ *#
+
+# The built in function assert checks if a condition evaluates to true
+# and aborts the interpreter if it evaluates to false.
+
+# Evaluates to true
+assert 0 == 0
+assert 6 == 2 * 3
+
+# Evaluates to false
+# assert 1 == 0
+
diff --git a/fype b/fype
index 9c7e67e..ae69ec2 100755
--- a/fype
+++ b/fype
Binary files differ
diff --git a/src/build.h b/src/build.h
index a076a40..30e43f1 100644
--- a/src/build.h
+++ b/src/build.h
@@ -36,7 +36,7 @@
#ifndef BUILD_H
#define BUILD_H
-#define BUILDNR 9667
+#define BUILDNR 9668
#define OS_FREEBSD
#endif