Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tla2bAST
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tla2bAST
Commits
29096bec
Commit
29096bec
authored
11 years ago
by
hansen
Browse files
Options
Downloads
Patches
Plain Diff
added simple resolver
parent
947233fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/tla2bAst/SimpleResolver.java
+19
-0
19 additions, 0 deletions
src/main/java/de/tla2bAst/SimpleResolver.java
src/main/java/de/tla2bAst/Translator.java
+2
-2
2 additions, 2 deletions
src/main/java/de/tla2bAst/Translator.java
with
21 additions
and
2 deletions
src/main/java/de/tla2bAst/SimpleResolver.java
0 → 100644
+
19
−
0
View file @
29096bec
package
de.tla2bAst
;
import
java.io.File
;
import
util.FilenameToStream
;
public
class
SimpleResolver
implements
FilenameToStream
{
public
boolean
isStandardModule
(
String
arg0
)
{
return
false
;
}
public
File
resolve
(
String
arg0
,
boolean
arg1
)
{
File
file
=
new
File
(
arg0
);
return
file
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/de/tla2bAst/Translator.java
+
2
−
2
View file @
29096bec
...
...
@@ -120,7 +120,7 @@ public class Translator {
if
(
configFileName
!=
null
)
{
File
f
=
new
File
(
configFileName
);
if
(
f
.
exists
())
{
modelConfig
=
new
ModelConfig
(
f
.
getName
(),
n
ull
);
modelConfig
=
new
ModelConfig
(
f
.
getName
(),
n
ew
SimpleResolver
()
);
modelConfig
.
parse
();
}
}
else
{
...
...
@@ -132,7 +132,7 @@ public class Translator {
String
configFile
=
fileNameWithoutSuffix
+
".cfg"
;
File
f
=
new
File
(
configFile
);
if
(
f
.
exists
())
{
modelConfig
=
new
ModelConfig
(
f
.
getName
(),
n
ull
);
modelConfig
=
new
ModelConfig
(
f
.
getName
(),
n
ew
SimpleResolver
()
);
modelConfig
.
parse
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment