this is rust code playground
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+
how to use
# see help
make help
# run test
make grammar
# clean build
make cleanAll
# only support make run
make 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
when build error ?
# use CLI to clean build
make cleanAll
how windows build this project?
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
how to add new case group ?
add new case file at src/grammar.txt
with name of src/grammar
file