Skip to content

Files

Latest commit

552b70a · Dec 25, 2015

History

History

grammar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 21, 2014
Apr 21, 2015
Oct 27, 2015
Apr 21, 2015
Oct 27, 2015
Jan 21, 2015
Dec 25, 2015
Jul 27, 2014
Feb 6, 2015
Sep 3, 2015
Nov 26, 2015
Apr 19, 2015
Apr 19, 2015

Reference grammar.

Uses antlr4 and a custom Rust tool to compare ASTs/token streams generated. You can use the check-lexer make target to run all of the available tests.

To use manually:

antlr4 RustLexer.g4
javac *.java
rustc -O verify.rs
for file in ../*/**.rs; do
    echo $file;
    grun RustLexer tokens -tokens < "$file" | ./verify "$file" RustLexer.tokens || break
done

Note That the ../*/**.rs glob will match every *.rs file in the above directory and all of its recursive children. This is a zsh extension.