diff options
-rw-r--r-- | default.bld | 13 | ||||
-rw-r--r-- | parserhelp.txt | 9 |
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 @@ | |||
1 | target "clic" | 1 | target "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 | ||
10 | target "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 | |||
19 | at all times. | 19 | at all times. |
20 | 20 | ||
21 | Changing the radix always clears all variables. | 21 | Changing the radix always clears all variables. |
22 | |||
23 | Every result that is provided is placed into the variable $ans, which makes | ||
24 | running totals or reusing values without calculating them again easy, e.g. | ||
25 | |||
26 | 552*0.01 | ||
27 | 5.52 | ||
28 | $ans + 101 | ||
29 | 106.52 | ||
30 | |||