From 1cbaa39e3cc7e8948cbd5be5f2d18170fcdebfe0 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 21 Jun 2025 23:52:33 +0300 Subject: make lr0 and lexer modular --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index e1367ca..d69fa83 100755 --- a/build.sh +++ b/build.sh @@ -2,12 +2,12 @@ set -xe -# gcc -Wall -Wextra -g lexer.c -o lexer +# gcc -Wall -Wextra -g -D_LEXER_STANDALONE lexer.c -o lexer # gcc -Wall -Wextra -g recursive-ascent.c -o recursive-ascent # gcc -Wall -Wextra -g recursive-ascent-descent.c -o recursive-ascent-descent -gcc -Wall -Wextra -g lr0.c -o lr0 +gcc -Wall -Wextra -g lr0-table.c -D_LR0_TABLE_STANDALONE -o lr0-table # valgrind --leak-check=full --show-leak-kinds=all -s ./lexer # valgrind --leak-check=full --show-leak-kinds=all -s ./recursive-ascent # valgrind --leak-check=full --show-leak-kinds=all -s ./recursive-ascent-descent -valgrind --leak-check=full --show-leak-kinds=all -s ./lr0 +valgrind --leak-check=full --show-leak-kinds=all -s ./lr0-table -- cgit v1.2.3