aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <kartofen.mail.0@protonmail.com>2025-07-08 00:21:07 +0300
committerkartofen <kartofen.mail.0@protonmail.com>2025-07-08 00:21:07 +0300
commit1946d7ada4924c88e8657f055edf9210cf0c6f2a (patch)
tree983528d33ed57e3ebc7792971507e6f9fff383ff /build.sh
parent364d124b961f2334fd9d2d380163f17c6575c26e (diff)
genearate parser options and lexer and dect separation
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 0e73e1e..91c7fdc 100755
--- a/build.sh
+++ b/build.sh
@@ -27,7 +27,8 @@ function leak
log valgrind --leak-check=full --show-leak-kinds=all -s bin/$1 $2
}
-# cc lexer -D_LEXER_STANDALONE
+cc dict -D_DICT_STANDALONE
+cc lexer -D_LEXER_STANDALONE
# cc recursive/recursive-ascent
# cc recursive/recursive-ascent-descent
# cc util-tables -D_UTIL_TABLES_STANDALONE
@@ -38,7 +39,8 @@ function leak
# cc demos/instant-parser
-# leak lexer
+leak lexer
+leak dict
# leak recursive-ascent
# leak recursive-ascent-descent
# leak util-tables
@@ -59,6 +61,6 @@ shared slr-table
shared clr-table
shared clr-table -D_LAZY_LALR lalr-table
-leak "generate-parser -t slr-table bin/arithmetic-defs.so" > bin/generated.c
+leak "generate-parser -t lalr-table bin/arithmetic-defs.so"
cc demos/sample-files/parser-skeleton "" parser # this includes bin/generated.c
leak parser "0-1+(1+0)-1+0"