aboutsummaryrefslogtreecommitdiffstats
path: root/Exception
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-24 10:30:40 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-26 11:13:45 +0200
commit07167f9cff1c858e474d820d97c9f264f3a19f52 (patch)
tree8afcfd0739fdb2486793b3df8ad1a9e6654b25de /Exception
parent51cdc8b21d13f2fcaa3f3a0d114247534849f8cb (diff)
downloadCompiler-07167f9cff1c858e474d820d97c9f264f3a19f52.zip
Compiler-07167f9cff1c858e474d820d97c9f264f3a19f52.tar.gz
Compiler-07167f9cff1c858e474d820d97c9f264f3a19f52.tar.bz2
Remove from/import and update to PHP5.4.
Diffstat (limited to 'Exception')
-rw-r--r--Exception/Exception.php14
-rw-r--r--Exception/FinalStateHasNotBeenReached.php15
-rw-r--r--Exception/IllegalToken.php15
-rw-r--r--Exception/Lexer.php15
-rw-r--r--Exception/Rule.php15
-rw-r--r--Exception/UnexpectedToken.php15
-rw-r--r--Exception/UnrecognizedToken.php15
7 files changed, 11 insertions, 93 deletions
diff --git a/Exception/Exception.php b/Exception/Exception.php
index f64c6a3..15933ba 100644
--- a/Exception/Exception.php
+++ b/Exception/Exception.php
@@ -34,7 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
+
+use Hoa\Core;
/**
* Class \Hoa\Compiler\Exception.
@@ -46,15 +48,9 @@ namespace Hoa\Compiler\Exception {
* @license New BSD License
*/
-class Exception extends \Hoa\Core\Exception { }
-
-}
-
-namespace {
+class Exception extends Core\Exception { }
/**
* Flex entity.
*/
-Hoa\Core\Consistency::flexEntity('Hoa\Compiler\Exception\Exception');
-
-}
+Core\Consistency::flexEntity('Hoa\Compiler\Exception\Exception');
diff --git a/Exception/FinalStateHasNotBeenReached.php b/Exception/FinalStateHasNotBeenReached.php
index dc19d8e..d66655c 100644
--- a/Exception/FinalStateHasNotBeenReached.php
+++ b/Exception/FinalStateHasNotBeenReached.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception
- */
--> import('Compiler.Exception.~');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\FinalStateHasNotBeenReached.
@@ -58,5 +47,3 @@ namespace Hoa\Compiler\Exception {
*/
class FinalStateHasNotBeenReached extends Exception { }
-
-}
diff --git a/Exception/IllegalToken.php b/Exception/IllegalToken.php
index 1196eb8..153dc78 100644
--- a/Exception/IllegalToken.php
+++ b/Exception/IllegalToken.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception
- */
--> import('Compiler.Exception.~');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\IllegalToken.
@@ -100,5 +89,3 @@ class IllegalToken extends Exception {
return $this->column;
}
}
-
-}
diff --git a/Exception/Lexer.php b/Exception/Lexer.php
index aeeb1a3..93e321c 100644
--- a/Exception/Lexer.php
+++ b/Exception/Lexer.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception
- */
--> import('Compiler.Exception.~');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\Lexer.
@@ -58,5 +47,3 @@ namespace Hoa\Compiler\Exception {
*/
class Lexer extends Exception { }
-
-}
diff --git a/Exception/Rule.php b/Exception/Rule.php
index dc4199c..70863c2 100644
--- a/Exception/Rule.php
+++ b/Exception/Rule.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception
- */
--> import('Compiler.Exception.~');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\FinalStateHasNotBeenReached.
@@ -59,5 +48,3 @@ namespace Hoa\Compiler\Exception {
*/
class Rule extends Exception { }
-
-}
diff --git a/Exception/UnexpectedToken.php b/Exception/UnexpectedToken.php
index 24fbcd6..2335536 100644
--- a/Exception/UnexpectedToken.php
+++ b/Exception/UnexpectedToken.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception\UnrecognizedToken
- */
--> import('Compiler.Exception.UnrecognizedToken');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\UnexpectedToken.
@@ -58,5 +47,3 @@ namespace Hoa\Compiler\Exception {
*/
class UnexpectedToken extends UnrecognizedToken { }
-
-}
diff --git a/Exception/UnrecognizedToken.php b/Exception/UnrecognizedToken.php
index a2c9f40..0754703 100644
--- a/Exception/UnrecognizedToken.php
+++ b/Exception/UnrecognizedToken.php
@@ -34,18 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace {
-
-from('Hoa')
-
-/**
- * \Hoa\Compiler\Exception
- */
--> import('Compiler.Exception.~');
-
-}
-
-namespace Hoa\Compiler\Exception {
+namespace Hoa\Compiler\Exception;
/**
* Class \Hoa\Compiler\Exception\UnrecognizedToken.
@@ -100,5 +89,3 @@ class UnrecognizedToken extends Exception {
return $this->column;
}
}
-
-}