3ff8167084
This is a fresh start with a much simpler approach for the flex/bison portions of the preprocessor. This isn't functional yet, (produces no output), but can at least read all of our test cases without any parse errors. The grammar here is based on the grammar provided for the preprocessor in the C99 specification.
13 lines
300 B
Bash
Executable File
13 lines
300 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Caution: These results are just verifying parse-ability, not correctness!"
|
|
|
|
for test in *.c; do
|
|
echo "Testing $test"
|
|
../glcpp < $test > $test.out
|
|
gcc -E $test -o $test.gcc
|
|
grep -v '^#' < $test.gcc > $test.expected
|
|
# diff -B -u $test.expected $test.out
|
|
done
|