-
开发环境
ubuntu 20.04 C++ 17 CMake >= 3.10
./
README.md
报告
ava_lexer/
CMakeLists.txt
include/
src/
ava_parser/
CMakeLists.txt
include/
src/
demo/
regular_grammar.txt
demo.ava
2grammar.txt
visual.py
ava_lexer
ava_parser
cd ava_lexer
mkdir build && cd build
cmake ..
make
cd demo
./ava_lexer regular_grammar.txt demo.ava
cd demo
./ava_lexer regular_grammar.txt demo.ava -o
cd demo
./ava_lexer regular_grammar.txt demo.ava -v
cd demo
./ava_lexer regular_grammar.txt demo.ava -v | python visual.py
-
python
依赖pip install graphviz
cd ava_parser
mkdir build && cd build
cmake ..
make
cd demo
./ava_lexer regular_grammar.txt demo.ava
./ava_parser 2grammar.txt tokens.txt
cd demo
./ava_lexer regular_grammar.txt demo.ava
./ava_parser 2grammar.txt tokens.txt -v