aboutsummaryrefslogtreecommitdiffstats
path: root/Llk
diff options
context:
space:
mode:
authorMetalaka <matthieu.de.laubrie@gmail.com>2015-08-12 20:35:36 +0200
committerMetalaka <matthieu.de.laubrie@gmail.com>2015-08-13 17:17:57 +0200
commit3961704aa19de34e7bcaf812fae86a0822b92153 (patch)
tree8a598367d91144afa41300932d48d834720e2840 /Llk
parent9f50ab2e155e4a3e3072aa39c516daa32e293fb8 (diff)
downloadCompiler-3961704aa19de34e7bcaf812fae86a0822b92153.zip
Compiler-3961704aa19de34e7bcaf812fae86a0822b92153.tar.gz
Compiler-3961704aa19de34e7bcaf812fae86a0822b92153.tar.bz2
Fix phpDoc.
Diffstat (limited to 'Llk')
-rw-r--r--Llk/Lexer.php2
-rw-r--r--Llk/Llk.php2
-rw-r--r--Llk/Parser.php1
-rw-r--r--Llk/Rule/Invocation.php2
-rw-r--r--Llk/Rule/Rule.php1
-rw-r--r--Llk/Rule/Token.php2
-rw-r--r--Llk/Sampler/BoundedExhaustive.php1
-rw-r--r--Llk/TreeNode.php2
8 files changed, 9 insertions, 4 deletions
diff --git a/Llk/Lexer.php b/Llk/Lexer.php
index 9999a13..4e715a8 100644
--- a/Llk/Lexer.php
+++ b/Llk/Lexer.php
@@ -167,7 +167,7 @@ class Lexer
*
* @param int $offset Offset.
* @return array
- * @throws \Hoa\Compiler\Exception\UnrecognizedToken
+ * @throws \Hoa\Compiler\Exception\Lexer
*/
protected function nextToken($offset)
{
diff --git a/Llk/Llk.php b/Llk/Llk.php
index 65d17dd..9aa92df 100644
--- a/Llk/Llk.php
+++ b/Llk/Llk.php
@@ -114,7 +114,7 @@ class Llk
*
* @param \Hoa\Stream\IStream\In $stream Stream that contains the
* grammar.
- * @return \Hoa\Compiler\Llk
+ * @return \Hoa\Compiler\Llk\Parser
* @throws \Hoa\Compiler\Exception
*/
public static function load(Stream\IStream\In $stream)
diff --git a/Llk/Parser.php b/Llk/Parser.php
index 17053eb..aaab998 100644
--- a/Llk/Parser.php
+++ b/Llk/Parser.php
@@ -715,6 +715,7 @@ class Parser
/**
* Get rule by name.
*
+ * @param string $name Rule name.
* @return \Hoa\Compiler\Llk\Rule
*/
public function getRule($name)
diff --git a/Llk/Rule/Invocation.php b/Llk/Rule/Invocation.php
index 4f820d3..ac9a3c5 100644
--- a/Llk/Rule/Invocation.php
+++ b/Llk/Rule/Invocation.php
@@ -141,7 +141,7 @@ abstract class Invocation
/**
* Set depth in trace.
*
- * @parma int $depth Depth.
+ * @param int $depth Depth.
* @return int
*/
public function setDepth($depth)
diff --git a/Llk/Rule/Rule.php b/Llk/Rule/Rule.php
index 91b4087..cd8dd5f 100644
--- a/Llk/Rule/Rule.php
+++ b/Llk/Rule/Rule.php
@@ -150,6 +150,7 @@ abstract class Rule
/**
* Set rule content.
*
+ * @param mixed $content Content.
* @return mixed
*/
protected function setContent($content)
diff --git a/Llk/Rule/Token.php b/Llk/Rule/Token.php
index 584e20f..db9b2fd 100644
--- a/Llk/Rule/Token.php
+++ b/Llk/Rule/Token.php
@@ -52,7 +52,7 @@ class Token extends Rule
/**
* LL(k) compiler of hoa://Library/Regex/Grammar.pp
*
- * @var \Hoa\Compiler\Llk
+ * @var \Hoa\Compiler\Llk\Parser
*/
protected static $_regexCompiler = null;
diff --git a/Llk/Sampler/BoundedExhaustive.php b/Llk/Sampler/BoundedExhaustive.php
index 09db057..83bc8e7 100644
--- a/Llk/Sampler/BoundedExhaustive.php
+++ b/Llk/Sampler/BoundedExhaustive.php
@@ -97,6 +97,7 @@ class BoundedExhaustive
*
* @param \Hoa\Compiler\Llk\Parser $compiler Compiler/parser.
* @param \Hoa\Visitor\Visit $tokenSampler Token sampler.
+ * @param int $length Max data length.
* @return void
*/
public function __construct(
diff --git a/Llk/TreeNode.php b/Llk/TreeNode.php
index e0e49fb..837c48a 100644
--- a/Llk/TreeNode.php
+++ b/Llk/TreeNode.php
@@ -218,6 +218,7 @@ class TreeNode implements Visitor\Element
/**
* Set children.
*
+ * @param array $children Children.
* @return array
*/
public function setChildren(Array $children)
@@ -262,6 +263,7 @@ class TreeNode implements Visitor\Element
/**
* Check if a child exists.
*
+ * @param int $i Index.
* @return bool
*/
public function childExists($i)