|
|
@ -9,7 +9,11 @@ void main() {
|
|
|
|
// The input files
|
|
|
|
// The input files
|
|
|
|
list[loc] files = getFilesIn(|project://minipas/test/input|);
|
|
|
|
list[loc] files = getFilesIn(|project://minipas/test/input|);
|
|
|
|
for (loc file <- files) {
|
|
|
|
for (loc file <- files) {
|
|
|
|
pt = runSyntaxTestOn(file);
|
|
|
|
try {
|
|
|
|
|
|
|
|
pt = runSyntaxTestOn(file);
|
|
|
|
|
|
|
|
} catch ParseError(loc e): {
|
|
|
|
|
|
|
|
println("Error at: <e>");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +23,6 @@ void main() {
|
|
|
|
start[Program] runSyntaxTestOn(loc file) {
|
|
|
|
start[Program] runSyntaxTestOn(loc file) {
|
|
|
|
println("Parsing: <file>");
|
|
|
|
println("Parsing: <file>");
|
|
|
|
return parse(#start[Program], file);
|
|
|
|
return parse(#start[Program], file);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
list[loc] getFilesIn(loc dir) {
|
|
|
|
list[loc] getFilesIn(loc dir) {
|
|
|
|