aboutsummaryrefslogtreecommitdiffstats
path: root/Llk
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-12 07:55:24 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-12 07:55:44 +0200
commitfd5d5d6961e25ade4104daa52f066e7cf59d4a90 (patch)
treed9fbbd7298aa9cc15836dcba0685da3bbe13ea02 /Llk
parent860a4f7372203f8c1d88c281e0652ca0fc3e7a37 (diff)
downloadCompiler-fd5d5d6961e25ade4104daa52f066e7cf59d4a90.zip
Compiler-fd5d5d6961e25ade4104daa52f066e7cf59d4a90.tar.gz
Compiler-fd5d5d6961e25ade4104daa52f066e7cf59d4a90.tar.bz2
Quality: Fix CS and API documentation.
Diffstat (limited to 'Llk')
-rw-r--r--Llk/Rule/Token.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/Llk/Rule/Token.php b/Llk/Rule/Token.php
index fa7366b..68ae3cb 100644
--- a/Llk/Rule/Token.php
+++ b/Llk/Rule/Token.php
@@ -50,7 +50,7 @@ use Hoa\File;
class Token extends Rule
{
/**
- * LL(k) compiler of hoa://Library/Regex/Grammar.pp
+ * LL(k) compiler of hoa://Library/Regex/Grammar.pp.
*
* @var \Hoa\Compiler\Llk\Parser
*/
@@ -117,9 +117,15 @@ class Token extends Rule
* @param bool $kept Whether the token is kept or not in the AST.
* @return void
*/
- public function __construct($name, $tokenName, $nodeId, $unification, $kept = false)
- {
+ public function __construct(
+ $name,
+ $tokenName,
+ $nodeId,
+ $unification,
+ $kept = false
+ ) {
parent::__construct($name, null, $nodeId);
+
$this->_tokenName = $tokenName;
$this->_unification = $unification;
$this->setKept($kept);