From d02a747ee8d7c1347a3bb2be2517ac280a55b97d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 30 Oct 2009 15:21:41 +0000 Subject: --- docs/help.txt | 2 +- docs/stats.txt | 6 +++--- docs/version.txt | 2 +- examples/assert.fy | 14 ++++++++++++++ fype | Bin 526969 -> 526969 bytes src/build.h | 2 +- 6 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 examples/assert.fy 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) -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 Binary files a/fype and b/fype 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 -- cgit v1.2.3