Browse Source

Fix phpDoc.

tags/2.15.08.25
Metalaka 5 years ago
parent
commit
3961704aa1
8 changed files with 9 additions and 4 deletions
  1. +1
    -1
      Llk/Lexer.php
  2. +1
    -1
      Llk/Llk.php
  3. +1
    -0
      Llk/Parser.php
  4. +1
    -1
      Llk/Rule/Invocation.php
  5. +1
    -0
      Llk/Rule/Rule.php
  6. +1
    -1
      Llk/Rule/Token.php
  7. +1
    -0
      Llk/Sampler/BoundedExhaustive.php
  8. +2
    -0
      Llk/TreeNode.php

+ 1
- 1
Llk/Lexer.php View File

@@ -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)
{


+ 1
- 1
Llk/Llk.php View File

@@ -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)


+ 1
- 0
Llk/Parser.php View File

@@ -715,6 +715,7 @@ class Parser
/**
* Get rule by name.
*
* @param string $name Rule name.
* @return \Hoa\Compiler\Llk\Rule
*/
public function getRule($name)


+ 1
- 1
Llk/Rule/Invocation.php View File

@@ -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)


+ 1
- 0
Llk/Rule/Rule.php View File

@@ -150,6 +150,7 @@ abstract class Rule
/**
* Set rule content.
*
* @param mixed $content Content.
* @return mixed
*/
protected function setContent($content)


+ 1
- 1
Llk/Rule/Token.php View File

@@ -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;



+ 1
- 0
Llk/Sampler/BoundedExhaustive.php View File

@@ -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(


+ 2
- 0
Llk/TreeNode.php View File

@@ -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)


Loading…
Cancel
Save