aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-12-07 16:51:43 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-12-07 16:51:43 +0100
commit2b1f93c291a731797bed28d2cdc112e0a21bd40a (patch)
tree8c6640c14e94b06e7c2b2fd7b9ea16c41331b20b /Visitor/Interpreter.php
parentc1bdbf7e5773d0a07c6523c9cbe095fa98380d77 (diff)
downloadPraspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.zip
Praspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.tar.gz
Praspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.tar.bz2
Add the getClause() method.
Useful when making an endless interpreter.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index 26fe9c7..a5cec2b 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -483,6 +483,17 @@ class Interpreter implements \Hoa\Visitor\Visit {
return $this->_root;
}
+
+ /**
+ * Get current clause.
+ *
+ * @access public
+ * @return \Hoa\Praspel\Model\Clause
+ */
+ public function getClause ( ) {
+
+ return $this->_clause;
+ }
}
}