Skip to content
Snippets Groups Projects

Merge/dev to fork master merge

6 files
+ 74
17
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -61,6 +61,18 @@ public class Compiler extends AbstractCompiler {
RagConnect ragConnect = parseProgram(getConfiguration().getFiles());
// lets inspect ragconnects tree
/*
for(EndpointDefinition ed : ragConnect.getEndpointDefinitionList()){
if(ed.isReceiveTokenEndpointDefinition()){
for(MappingDefinition md : ed.asReceiveTokenEndpointDefinition().effectiveMappings()){
// if (!effectiveMappings().get(effectiveMappings().size() - 1).getToType().assignableTo(
// getToken().effectiveJavaTypeUse())) {
System.out.println("gtt: " + md.getToType());
}
}
}
*/
if (!ragConnect.errors().isEmpty()) {
System.err.println("Errors:");
for (ErrorMessage e : ragConnect.errors()) {
@@ -243,7 +255,7 @@ public class Compiler extends AbstractCompiler {
grammarFile.dumpTree(System.out);
}
program.addGrammarFile(grammarFile);
grammarFile.treeResolveAll();
//grammarFile.treeResolveAll();
grammarFile.setFileName(toBaseName(filename));
} catch (IOException | Parser.Exception e) {
throw new CompilerException("Could not parse grammar file " + filename, e);
Loading