aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-02-20 11:27:01 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-02-20 11:27:01 +0100
commit43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e (patch)
tree323d58af49c7aa0ba012a3ea1bb488169174e5c8 /Visitor/Interpreter.php
parent828df3699a17085da4882c764df663ce773cc25a (diff)
downloadPraspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.zip
Praspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.tar.gz
Praspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.tar.bz2
Add the “accepted” token.
It helps to recognize an invalid escape character, such as: Foo\Bar\Baz, which is equivalent to Foo\\Bar\\Baz.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index ee8a594..dea8279 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -462,6 +462,7 @@ class Interpreter implements \Hoa\Visitor\Visit {
return \Hoa\String::fromCode(octdec($value));
}
+ case 'accepted':
case 'string':
return $value;