A simple SysY program analyzer, currently supports only lexical/grammar analysis.
# show help message
cargo run
# run on SysY source file
cargo run -- source.c statistics.json
# run on directory
cargo run -- sysy_files statistics.json
This repository also contains a SysY test case classifier based on sysy-analyzer
. You can run:
cargo run -- sysy_files | ./classifier.py > result.csv
Copyright 2022 MaxXing. License GPLv3.