Skip to content
Snippets Groups Projects
Commit 53052199 authored by Johannes Mey's avatar Johannes Mey
Browse files

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

parent b68e3ae6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment