From d058d41b6876fdd09ae42f01859c946d3c52cf6a Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Fri, 2 Dec 2016 12:01:15 +0100 Subject: [PATCH] Add section for running a single test --- src/grammar/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/grammar/README.md b/src/grammar/README.md index cd2dd38de36aa..8098172c6e372 100644 --- a/src/grammar/README.md +++ b/src/grammar/README.md @@ -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`: