Update src/grammar/README.md

This commit is contained in:
Florian Hahn 2014-12-30 16:49:27 +01:00
parent f066acf645
commit 1e278c1cd1
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Reference grammar. Reference grammar.
Uses [antlr4](http://www.antlr.org/) and a custom Rust tool to compare Uses [antlr4](http://www.antlr.org/) and a custom Rust tool to compare
ASTs/token streams generated. You can use the `check-syntax` make target to ASTs/token streams generated. You can use the `check-lexer` make target to
run all of the available tests. run all of the available tests.
To use manually: To use manually:
@ -12,7 +12,7 @@ javac *.java
rustc -O verify.rs rustc -O verify.rs
for file in ../*/**.rs; do for file in ../*/**.rs; do
echo $file; echo $file;
grun RustLexer tokens -tokens < $file | ./verify $file || break grun RustLexer tokens -tokens < $file | ./verify $file RustLexer.tokens || break
done done
``` ```