aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-22 15:11:57 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-22 15:11:57 +0100
commitc5b344986d8a65aeea69848f765a8267296681a8 (patch)
treea5dea8839bd7140baf771720673246e87de6a8bc /Visitor/Interpreter.php
parent61f09f7049928d3f4813a6623ec2c055adf792c2 (diff)
downloadPraspel-c5b344986d8a65aeea69848f765a8267296681a8.zip
Praspel-c5b344986d8a65aeea69848f765a8267296681a8.tar.gz
Praspel-c5b344986d8a65aeea69848f765a8267296681a8.tar.bz2
Clean a little bit \old(e) support.
Remove a useless code in the RAC. And move the `\old(e)` support from the interpreter to the model.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index bf9a3d9..9d20411 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -332,16 +332,6 @@ class Interpreter implements \Hoa\Visitor\Visit {
$argument = $child->accept($this, $handle, $eldnah);
- if( $argument instanceof \Hoa\Praspel\Model\Variable\Borrowing
- && $argument::TYPE_OLD === $argument->getType())
- $argument = new \Hoa\Realdom\Crate\Constant(
- $argument->getBorrowedVariable(),
- function ( ) use ( $argument ) {
-
- return $argument->getName();
- }
- );
-
if($argument instanceof \Hoa\Realdom\Disjunction) {
$realdoms = $argument->getRealdoms();
@@ -464,10 +454,7 @@ class Interpreter implements \Hoa\Visitor\Visit {
')';
if(false !== $eldnah)
- return $this->_clause->getVariable(
- $value,
- true
- );
+ return $this->_clause->getVariable($value);
return $value;
break;