summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-11-28 11:12:14 -0700
committerMike Buland <eichlan@xagasoft.com>2014-11-28 11:12:14 -0700
commit02573826558bd44f0ec3ed542964be0096d5e389 (patch)
treeff69cbedc277a55ab947ca42d9b1ba548a0c7f40
parentb4510a2861acabf1f27ecbd8c42602a0c342763d (diff)
downloadclic-02573826558bd44f0ec3ed542964be0096d5e389.tar.gz
clic-02573826558bd44f0ec3ed542964be0096d5e389.tar.bz2
clic-02573826558bd44f0ec3ed542964be0096d5e389.tar.xz
clic-02573826558bd44f0ec3ed542964be0096d5e389.zip
build builds the datafiles class now.
Added a little bit of help, too.
-rw-r--r--default.bld13
-rw-r--r--parserhelp.txt9
2 files changed, 21 insertions, 1 deletions
diff --git a/default.bld b/default.bld
index d39ddc5..390a58a 100644
--- a/default.bld
+++ b/default.bld
@@ -1,9 +1,20 @@
1target "clic" 1target "clic"
2{ 2{
3 rule "exe"; 3 rule "exe";
4 input files("src/*.cpp"); 4 input [files("src/*.cpp"), "src/datafiles.cpp"];
5 5
6 CXXFLAGS += "-ggdb"; 6 CXXFLAGS += "-ggdb";
7 LDFLAGS += "-ggdb -lbu++"; 7 LDFLAGS += "-ggdb -lbu++";
8} 8}
9 9
10target "datafiles.cpp"
11{
12 input "parserhelp.txt";
13 display "bin2cpp";
14
15 profile "build"
16 {
17 execute("../libbu++/bin2cpp -d src parserhelp.txt");
18 }
19}
20
diff --git a/parserhelp.txt b/parserhelp.txt
index 0da866c..12a82b1 100644
--- a/parserhelp.txt
+++ b/parserhelp.txt
@@ -19,3 +19,12 @@ matter what radix is currently set. These are also displayed in base 10
19at all times. 19at all times.
20 20
21Changing the radix always clears all variables. 21Changing the radix always clears all variables.
22
23Every result that is provided is placed into the variable $ans, which makes
24running totals or reusing values without calculating them again easy, e.g.
25
26552*0.01
275.52
28$ans + 101
29106.52
30