From 02573826558bd44f0ec3ed542964be0096d5e389 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 28 Nov 2014 11:12:14 -0700 Subject: build builds the datafiles class now. Added a little bit of help, too. --- default.bld | 13 ++++++++++++- parserhelp.txt | 9 +++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/default.bld b/default.bld index d39ddc5..390a58a 100644 --- a/default.bld +++ b/default.bld @@ -1,9 +1,20 @@ target "clic" { rule "exe"; - input files("src/*.cpp"); + input [files("src/*.cpp"), "src/datafiles.cpp"]; CXXFLAGS += "-ggdb"; LDFLAGS += "-ggdb -lbu++"; } +target "datafiles.cpp" +{ + input "parserhelp.txt"; + display "bin2cpp"; + + profile "build" + { + execute("../libbu++/bin2cpp -d src parserhelp.txt"); + } +} + 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 at all times. Changing the radix always clears all variables. + +Every result that is provided is placed into the variable $ans, which makes +running totals or reusing values without calculating them again easy, e.g. + +552*0.01 +5.52 +$ans + 101 +106.52 + -- cgit v1.2.3