diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-02 22:55:08 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-02 22:55:08 +0300 |
| commit | 67447ebd3a51a9af29d18a53a38aba038a0c039e (patch) | |
| tree | 7a41182cf329e77ebb760969e3f220f60079c187 /build.sh | |
| parent | a854ee90235597711e036fe38de2c310dab6e168 (diff) | |
turn clr into lalr and first steps for generating a parser
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -5,7 +5,13 @@ set -xe function cc { mkdir -p bin - gcc -Wall -Wextra -Wpedantic -g $2 $1.c -o bin/$(basename $1) + gcc -Wall -Wextra -Wpedantic -I. -g $2 $1.c -o bin/$(basename $1) +} + +function shared +{ + mkdir -p bin + gcc -Wall -Wextra -Wpedantic -I. -shared -fPIC $2 $1.c -o bin/$(basename $1).so } function leak @@ -19,8 +25,11 @@ function leak # cc util-tables -D_UTIL_TABLES_STANDALONE # cc slr-table -D_SLR_TABLE_STANDALONE # cc clr-table -D_CLR_TABLE_STANDALONE +# cc clr-table "-D_CLR_TABLE_STANDALONE -D_LAZY_LALR" # cc lr-parser -D_LR_PARSER_STANDALONE -cc fusion +# cc demos/instant-parser +cc demos/generate-parser +shared demos/sample-files/defs # leak lexer # leak recursive-ascent @@ -29,4 +38,5 @@ cc fusion # leak slr-table # leak clr-table # leak lr-parser -leak fusion +# leak instant-parser +leak "generate-parser bin/defs.so" |
