Skip to content
Snippets Groups Projects
Commit 3a790156 authored by Jan Gruteser's avatar Jan Gruteser
Browse files

get rid of SimpleResolver

parent 4828c50c
No related branches found
No related tags found
No related merge requests found
Pipeline #148349 passed
package de.tla2bAst;
import util.FilenameToStream;
import java.io.File;
public class SimpleResolver implements FilenameToStream {
private File file;
public boolean isStandardModule(String arg0) {
return false;
}
public File resolve(String arg0, boolean arg1) {
file = new File(arg0);
return file;
}
public String getFullPath() {
return file.getAbsolutePath();
}
}
...@@ -131,9 +131,8 @@ public class Translator implements TranslationGlobals { ...@@ -131,9 +131,8 @@ public class Translator implements TranslationGlobals {
private void parse() throws TLA2BFrontEndException { private void parse() throws TLA2BFrontEndException {
moduleNode = parseModule(); moduleNode = parseModule();
modelConfig = null;
if (configFile != null) { if (configFile != null) {
modelConfig = new ModelConfig(configFile.getAbsolutePath(), new SimpleResolver()); modelConfig = new ModelConfig(configFile.getName(), null);
modelConfig.parse(); modelConfig.parse();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment