HyriseSQLParser/lemon_example/build_and_run.sh

9 lines
286 B
Bash
Raw Normal View History

rm -f lemon_test lemon_parser.c flex_scanner.c
echo "Lemon"
lemon lemon_parser.y
echo "Flex"
# flex lexer.l
flex --outfile=flex_scanner.c --header-file=flex_scanner.h flex_scanner.l
echo "Compile"
g++ main.cpp lemon_parser.c flex_scanner.c -o lemon_test -std=c++11 -pthread
./lemon_test