Commit 53052199 authored by Johannes Mey's avatar Johannes Mey
Browse files

fix time of reference resolution (to after loading all files)

parent b68e3ae6
......@@ -119,7 +119,6 @@ public abstract class RelAstProcessor extends AbstractCompiler {
GrammarFile inputGrammar = (GrammarFile) parser.parse(scanner);
inputGrammar.setFileName(path.toString());
program.addGrammarFile(inputGrammar);
inputGrammar.treeResolveAll();
} catch (IOException | beaver.Parser.Exception e) {
printMessage("Could not parse grammar file " + path);
e.printStackTrace();
......@@ -127,6 +126,8 @@ public abstract class RelAstProcessor extends AbstractCompiler {
}
);
program.treeResolveAll();
return program;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment