We welcome community contributions to this project.
Please read Contributor Guide for more information on how to get started.
请阅读有关 贡献者指南 以获取更多如何入门的信息
If you do not have Rust setup, please visit rust-lang.org for operating specific instructions. In order to run the test case you need Rust installed. To check your installations simply type:
edition = "2021"
$ rustc --version
$ cargo --version
Currently, a Rust version of 1.56.0 or higher
can run this project version is
- rustc 1.56+
- cargo 1.56+
# see help
make help
# run test grammar
make run.grammar
# run test tools
make run.tools
# clean build
make clean.all
make run.grammar
and default envTEST_FILTER=grammar
will generate thepath_to_grammar.rs
file and populate it with the first test in the list.- After supplying an answer for the first test case.
- entering
cargo run
again will continue you on yoursrc/grammar
path, with config filesrc/grammar.txt
# use CLI to clean build
make clean.all
install rust with rustup-init.exe in https://www.rust-lang.org/tools/install open with Windows!
cargo run
# if error use
rd /s /Q .\target
del .\src\path_to_grammar.rs
add new case file at src/grammar.txt
with name of src/grammar
file
add new case file at src/tools.txt
with name of src/tools
file