-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
3 changed files
with
13 additions
and
25 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
interpreter/jvm/src/main/scala/chester/truffle/node/BooleanNode.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
interpreter/jvm/src/main/scala/chester/truffle/node/BooleanNode.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,11 @@ | ||
package chester.truffle.node | ||
|
||
import chester.syntax.core.BooleanTermC | ||
import chester.syntax.core.TermMeta | ||
import com.oracle.truffle.api.frame.VirtualFrame | ||
|
||
import scala.Option | ||
|
||
final case class BooleanNode(override val value: Boolean, override val meta: Option[TermMeta]) extends LiteralNode with BooleanTermC[TermNode] { | ||
override def executeGeneric(frame: VirtualFrame): Boolean = value | ||
} |
2 changes: 2 additions & 0 deletions
2
interpreter/jvm/src/main/scala/chester/truffle/node/TermNode.java
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,6 +1,8 @@ | ||
package chester.truffle.node; | ||
|
||
import chester.syntax.core.TermT; | ||
import com.oracle.truffle.api.frame.VirtualFrame; | ||
|
||
public abstract class TermNode extends ChesterNode implements TermT<TermNode> { | ||
public abstract Object executeGeneric(VirtualFrame frame); | ||
} |