From 7ccd9286bafbd01fbda67c2f234998c2e591ed2a Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 17 Jul 2025 01:27:05 +0300 Subject: ok precedence --- build.sh | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'build.sh') 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))" -- cgit v1.2.3