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
e82d15c0
Commit
e82d15c0
authored
8 months ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Re-add old method names as deprecated to improve backwards compatibility
Follow-up to
a3b3fb00
.
parent
f464fa63
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/tla2bAst/ExpressionTranslator.java
+5
-0
5 additions, 0 deletions
src/main/java/de/tla2bAst/ExpressionTranslator.java
src/main/java/de/tla2bAst/Translator.java
+10
-0
10 additions, 0 deletions
src/main/java/de/tla2bAst/Translator.java
with
15 additions
and
0 deletions
src/main/java/de/tla2bAst/ExpressionTranslator.java
+
5
−
0
View file @
e82d15c0
...
@@ -156,6 +156,11 @@ public class ExpressionTranslator implements SyntaxTreeConstants {
...
@@ -156,6 +156,11 @@ public class ExpressionTranslator implements SyntaxTreeConstants {
return
this
.
expressionStart
;
return
this
.
expressionStart
;
}
}
@Deprecated
public
Start
translate
()
{
return
this
.
translateWithoutModel
();
}
public
static
ModuleNode
parseModule
(
String
moduleName
,
String
module
)
public
static
ModuleNode
parseModule
(
String
moduleName
,
String
module
)
throws
de
.
tla2b
.
exceptions
.
FrontEndException
{
throws
de
.
tla2b
.
exceptions
.
FrontEndException
{
SpecObj
spec
=
new
SpecObj
(
moduleName
,
null
);
SpecObj
spec
=
new
SpecObj
(
moduleName
,
null
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/tla2bAst/Translator.java
+
10
−
0
View file @
e82d15c0
...
@@ -321,12 +321,22 @@ public class Translator implements TranslationGlobals {
...
@@ -321,12 +321,22 @@ public class Translator implements TranslationGlobals {
return
expressionTranslator
.
translateIncludingModel
();
return
expressionTranslator
.
translateIncludingModel
();
}
}
@Deprecated
public
Start
translateExpression
(
String
tlaExpression
)
throws
TLA2BException
{
return
this
.
translateExpressionIncludingModel
(
tlaExpression
);
}
public
static
Start
translateExpressionWithoutModel
(
String
tlaExpression
)
{
public
static
Start
translateExpressionWithoutModel
(
String
tlaExpression
)
{
ExpressionTranslator
expressionTranslator
=
new
ExpressionTranslator
(
tlaExpression
);
ExpressionTranslator
expressionTranslator
=
new
ExpressionTranslator
(
tlaExpression
);
expressionTranslator
.
parse
();
expressionTranslator
.
parse
();
return
expressionTranslator
.
translateWithoutModel
();
return
expressionTranslator
.
translateWithoutModel
();
}
}
@Deprecated
public
static
Start
translateTlaExpression
(
String
tlaExpression
)
{
return
translateExpressionWithoutModel
(
tlaExpression
);
}
public
Definitions
getBDefinitions
()
{
public
Definitions
getBDefinitions
()
{
return
bDefinitions
;
return
bDefinitions
;
}
}
...
...
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