-
-
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.
- Loading branch information
Igor Konnov
authored and
Kukovec
committed
Jun 26, 2020
1 parent
9194c95
commit b0256bf
Showing
19 changed files
with
64 additions
and
1,076 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
tla-import/src/main/scala/at/forsyte/apalache/io/tlc/TlcConfigLexer.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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package at.forsyte.apalache.io.tlc | ||
|
||
import at.forsyte.apalache.io.tlc.config._ | ||
|
||
import scala.util.parsing.combinator.RegexParsers | ||
|
||
/** | ||
* A lexer for the TLC configuration files. | ||
* | ||
* @author Igor Konnov | ||
*/ | ||
object TlcConfigLexer extends RegexParsers { | ||
override def skipWhitespace: Boolean = true | ||
|
||
def identifier: Parser[Ident] = { | ||
"[a-zA-Z_][a-zA-Z0-9_]*".r ^^ { name => Ident(name) } | ||
} | ||
|
||
def constant: Parser[Constant] = { | ||
"CONSTANT(S|)".r ^^ (_ => Constant()) | ||
} | ||
|
||
def init: Parser[Init] = { | ||
"INIT" ^^ (_ => Init()) | ||
} | ||
|
||
def next: Parser[Next] = { | ||
"NEXT" ^^ (_ => Next()) | ||
} | ||
|
||
def specification: Parser[Specification] = { | ||
"SPECIFICATION" ^^ (_ => Specification()) | ||
} | ||
|
||
def invariant: Parser[Invariant] = { | ||
"INVARIANT" ^^ (_ => Invariant()) | ||
} | ||
|
||
def property: Parser[Property] = { | ||
"PROPERT(Y|IES)" ^^ (_ => Property()) | ||
} | ||
|
||
def constraint: Parser[Constraint] = { | ||
"CONSTRAINT" ^^ (_ => Constraint()) | ||
} | ||
|
||
def assign: Parser[Assign] = { | ||
"<-" ^^ (_ => Assign()) | ||
} | ||
|
||
def eq: Parser[Eq] = { | ||
"=" ^^ (_ => Eq()) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tla-import/src/main/scala/at/forsyte/apalache/io/tlc/TlcConfigParser.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package at.forsyte.apalache.io.tlc | ||
|
||
/** | ||
* A parser for the TLC configuration files. | ||
* | ||
* @author Igor Konnov | ||
*/ | ||
class TlcConfigParser { | ||
|
||
} |
86 changes: 0 additions & 86 deletions
86
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/dsl/dsl.scala
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/Kind.scala
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/Loc.scala
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/LocRange.scala
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/Module.scala
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/Origin.scala
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/Spec.scala
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/SymbolTable.scala
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/ir/TlaNode.scala
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tla-import/src/main/scala/at/forsyte/apalache/tla/obsolete/parser/XmlError.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.