summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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