-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ids in TlaDecl and refactoring of TransformationTracker (#444)
- Loading branch information
Showing
26 changed files
with
319 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...r/src/main/scala/at/forsyte/apalache/tla/lir/transformations/TransformationListener.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
package at.forsyte.apalache.tla.lir.transformations | ||
|
||
import at.forsyte.apalache.tla.lir.TlaEx | ||
import at.forsyte.apalache.tla.lir.{TlaDecl, TlaEx} | ||
|
||
/** | ||
* Many processing methods transform a TLA+ expression into another TLA+ expression. To record these changes, | ||
* we have introduced this listener. This is a replacement for SourceDB. The clients who are willing to track changes | ||
* should implement their listener and register it with a TransformationFactory. | ||
* Many processing methods transform a TLA+ expression into another TLA+ expression. Sometimes, we also | ||
* transform declarations. To record these changes, we have introduced this listener. The clients who are willing | ||
* to track changes should implement their listener and register it with a TransformationFactory. | ||
* | ||
* @author Igor Konnov | ||
*/ | ||
trait TransformationListener { | ||
def onTransformation(originalEx: TlaEx, newEx: TlaEx): Unit | ||
} | ||
|
||
def onDeclTransformation(originalDecl: TlaDecl, newDecl: TlaDecl): Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
tlair/src/main/scala/at/forsyte/apalache/tla/lir/transformations/impl/Lift.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.