Skip to content

Commit b166144

Browse files
committed
Add section for running a single test
1 parent 3112f6a commit b166144

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/grammar/README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22

33
Uses [antlr4](http://www.antlr.org/) and a custom Rust tool to compare
44
ASTs/token streams generated. You can use the `make check-lexer` target to
5-
run all of the available tests.
5+
run all of the available tests or `make check-grammar` and focus on the grammar checks.
66

77
The build of the rust part is included with `make tidy` and can be run with `make check-build-lexer-verifier`.
88

9+
## Running one grammar test
10+
11+
First you need to setup your environment:
12+
```
13+
./configure
14+
make check-grammar
15+
```
16+
17+
Then run the check you would like:
18+
```
19+
grammar/parser-lalr < src/test/compile-fail/E0063.rs
20+
```
21+
922
# Manual build
1023

1124
To use manually, assuming antlr4 ist installed at `/usr/share/java/antlr-complete.jar`:

0 commit comments

Comments
 (0)