diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-12-07 16:51:43 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-12-07 16:51:43 +0100 |
commit | 2b1f93c291a731797bed28d2cdc112e0a21bd40a (patch) | |
tree | 8c6640c14e94b06e7c2b2fd7b9ea16c41331b20b /Visitor | |
parent | c1bdbf7e5773d0a07c6523c9cbe095fa98380d77 (diff) | |
download | Praspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.zip Praspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.tar.gz Praspel-2b1f93c291a731797bed28d2cdc112e0a21bd40a.tar.bz2 |
Add the getClause() method.
Useful when making an endless interpreter.
Diffstat (limited to 'Visitor')
-rw-r--r-- | Visitor/Interpreter.php | 11 |
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; + } } } |