File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Uses [ antlr4] ( http://www.antlr.org/ ) and a custom Rust tool to compare
4
4
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 .
6
6
7
7
The build of the rust part is included with ` make tidy ` and can be run with ` make check-build-lexer-verifier ` .
8
8
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
+
9
22
# Manual build
10
23
11
24
To use manually, assuming antlr4 ist installed at ` /usr/share/java/antlr-complete.jar ` :
You can’t perform that action at this time.
0 commit comments