aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2025-07-08 00:21:07 +0300
committerkartofen <mladenovnasko0@gmail.com>2025-07-08 00:21:07 +0300
commit919611902c39fd70afe1162883ee6bfd34f2642e (patch)
tree983528d33ed57e3ebc7792971507e6f9fff383ff /build.sh
parenta6cb97af1a2a5491f54fcfa7064641dc0aafd898 (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"