Skip to content
Snippets Groups Projects
Commit 4ab23d17 authored by René Schöne's avatar René Schöne
Browse files

fix output file computation for source2source compiler

- in accordance with recent changes
parent 2850be7f
Branches
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ public class RelastSourceToSourceCompiler extends RelAstProcessor { ...@@ -30,7 +30,7 @@ public class RelastSourceToSourceCompiler extends RelAstProcessor {
for (GrammarFile grammarFile : program.getGrammarFileList()) { for (GrammarFile grammarFile : program.getGrammarFileList()) {
printMessage("Writing output file " + grammarFile.getFileName()); printMessage("Writing output file " + grammarFile.getFileName());
// TODO decide and document what the file name should be, the full path or a simple name? // TODO decide and document what the file name should be, the full path or a simple name?
writeToFile(outputBasePath.resolve(inputBasePath.relativize(Paths.get(grammarFile.getFileName()))), grammarFile.generateAbstractGrammar()); writeToFile(outputBasePath.resolve(grammarFile.getFileName()), grammarFile.generateAbstractGrammar());
} }
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment