aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh30
1 files changed, 12 insertions, 18 deletions
diff --git a/build.sh b/build.sh
index b4c62c8..aa0c308 100755
--- a/build.sh
+++ b/build.sh
@@ -24,7 +24,7 @@ function shared
function leak
{
- log valgrind --leak-check=full --show-leak-kinds=all -s bin/$1 $2
+ log valgrind --leak-check=full --show-leak-kinds=all -s bin/$1 "$2"
}
# cc util/dict -D_DICT_STANDALONE
@@ -48,8 +48,8 @@ function leak
# cc clr-table -D_CLR_TABLE_STANDALONE
# leak clr-table
-cc clr-table "-D_CLR_TABLE_STANDALONE -D_LAZY_LALR" lalr-table
-leak lalr-table
+# cc clr-table "-D_CLR_TABLE_STANDALONE -D_LAZY_LALR" lalr-table
+# leak lalr-table
# cc lr-parser -D_LR_PARSER_STANDALONE
# leak lr-parser
@@ -59,21 +59,15 @@ leak lalr-table
#--------------------------------------------------------------------------------------------------#
-# cc demos/generate-parser "-rdynamic"
+cc demos/generate-parser "-rdynamic"
-# shared slr-table
-# shared clr-table
-# shared clr-table -D_LAZY_LALR lalr-table
-# shared demos/sample-files/lalr-defs
-
-# --- Arithemitc example ---
-# shared demos/sample-files/arithmetic-defs
-# leak "generate-parser -t lalr-table bin/arithmetic-defs.so"
-# cc demos/sample-files/arithmetic-skeleton "" parser
-# leak parser "0-1+(1+0)-1+0"
+shared slr-table
+shared clr-table
+shared clr-table -D_LAZY_LALR lalr-table
+shared demos/sample-files/lalr-defs
# --- Calc example ---
-# shared demos/sample-files/calc-defs
-# leak "generate-parser -t lalr-table bin/calc-defs.so"
-# cc demos/sample-files/calc-skeleton "" parser
-# leak parser "4237-100+(17498+70)-1321+82910"
+shared demos/sample-files/calc-defs
+leak "generate-parser -t lalr-table bin/calc-defs.so"
+cc demos/sample-files/calc-skeleton "" parser
+leak parser "13*10+9 - (54*(10+8))"