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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tla2bAST
Commits
19c9592d
Commit
19c9592d
authored
4 months ago
by
Jan Gruteser
Browse files
Options
Downloads
Patches
Plain Diff
remove IType interface
parent
9e525feb
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/tla2b/types/IType.java
+0
-22
0 additions, 22 deletions
src/main/java/de/tla2b/types/IType.java
src/main/java/de/tla2b/types/TLAType.java
+20
-6
20 additions, 6 deletions
src/main/java/de/tla2b/types/TLAType.java
with
20 additions
and
28 deletions
src/main/java/de/tla2b/types/IType.java
deleted
100644 → 0
+
0
−
22
View file @
9e525feb
package
de.tla2b.types
;
import
de.tla2b.output.TypeVisitorInterface
;
public
interface
IType
{
int
UNTYPED
=
0
;
int
INTEGER
=
1
;
int
BOOL
=
2
;
int
STRING
=
3
;
int
MODELVALUE
=
4
;
int
POW
=
5
;
int
PAIR
=
6
;
int
STRUCT
=
7
;
int
TUPLEORSEQ
=
8
;
int
STRUCT_OR_FUNCTION
=
9
;
int
FUNCTION
=
10
;
int
TUPLE
=
11
;
int
TUPLE_OR_FUNCTION
=
12
;
int
REAL
=
13
;
void
apply
(
TypeVisitorInterface
visitor
);
}
This diff is collapsed.
Click to expand it.
src/main/java/de/tla2b/types/TLAType.java
+
20
−
6
View file @
19c9592d
...
...
@@ -2,8 +2,25 @@ package de.tla2b.types;
import
de.be4.classicalb.core.parser.node.PExpression
;
import
de.tla2b.exceptions.UnificationException
;
import
de.tla2b.output.TypeVisitorInterface
;
public
abstract
class
TLAType
{
static
int
UNTYPED
=
0
;
static
int
INTEGER
=
1
;
static
int
BOOL
=
2
;
static
int
STRING
=
3
;
static
int
MODELVALUE
=
4
;
static
int
POW
=
5
;
static
int
PAIR
=
6
;
static
int
STRUCT
=
7
;
static
int
TUPLEORSEQ
=
8
;
static
int
STRUCT_OR_FUNCTION
=
9
;
static
int
FUNCTION
=
10
;
static
int
TUPLE
=
11
;
static
int
TUPLE_OR_FUNCTION
=
12
;
static
int
REAL
=
13
;
public
abstract
class
TLAType
implements
IType
{
private
final
int
kind
;
public
TLAType
(
int
t
)
{
...
...
@@ -14,8 +31,6 @@ public abstract class TLAType implements IType {
return
kind
;
}
public
abstract
String
toString
();
public
abstract
PExpression
getBNode
();
public
abstract
boolean
compare
(
TLAType
o
);
...
...
@@ -36,7 +51,6 @@ public abstract class TLAType implements IType {
return
current
;
}
public
final
String
printObjectToString
()
{
return
super
.
toString
();
}
public
abstract
void
apply
(
TypeVisitorInterface
visitor
);
}
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