Skip to content

Commit

Permalink
Add section for running a single test
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Dec 27, 2016
1 parent 2b4c9fd commit d058d41
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/grammar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@

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

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

## Running one grammar test

First you need to setup your environment:
```
./configure
make check-grammar
```

Then run the check you would like:
```
grammar/parser-lalr < src/test/compile-fail/E0063.rs
```

# Manual build

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

0 comments on commit d058d41

Please sign in to comment.