tcr / parser-c

Haskell's language-c ported to Rust.
http://docs.rs/parser-c
31 stars 5 forks source link

Start porting the Haskell test suite #33

Closed birkenfeld closed 6 years ago

birkenfeld commented 6 years ago

This (based on the pretty branch) moves the test suite to its own crate, within a Cargo workspace.

The first test I ported is the largest one, which parses, pretty-prints and reparses several thousand files from the GCC test suite. (They are in a tarball in the repo which is unpacked by the new test.sh script.)

In the process, I fixed some outstanding bugs, so now all of those files are parseable and after pretty-printing, parsing that results in the same AST.