@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Build the analyzer of the rules (does not analyze the rules). |
76 | 76 | * |
77 | - * @return Rule[]|\Traversable |
|
77 | + * @return \Generator |
|
78 | 78 | * @throws GrammarException |
79 | 79 | */ |
80 | 80 | public function analyze(): iterable |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * Implementation of “simple”. |
310 | 310 | * |
311 | 311 | * @param LookaheadIterator $tokens |
312 | - * @param int|string|null $pNodeId |
|
312 | + * @param string|null $pNodeId |
|
313 | 313 | * @return string|int|null |
314 | 314 | * @throws GrammarException |
315 | 315 | */ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param RuleInterface|NodeInterface $rule |
|
42 | + * @param null|NodeInterface $rule |
|
43 | 43 | * @return \Traversable |
44 | 44 | */ |
45 | 45 | private function getTokens(RuleInterface $rule): \Traversable |
@@ -18,9 +18,7 @@ |
||
18 | 18 | use Railt\Parser\Ast\NodeInterface; |
19 | 19 | use Railt\Parser\Ast\Rule; |
20 | 20 | use Railt\Parser\Ast\RuleInterface; |
21 | -use Railt\Parser\Environment; |
|
22 | 21 | use Railt\Parser\Grammar; |
23 | -use Railt\Parser\GrammarInterface; |
|
24 | 22 | |
25 | 23 | /** |
26 | 24 | * Class RuleDelegate |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Railt\Io\Readable; |
16 | 16 | use Railt\Lexer\Driver\NativeRegex; |
17 | 17 | use Railt\Lexer\LexerInterface; |
18 | -use Railt\Parser\Ast\RuleInterface; |
|
19 | 18 | use Railt\Parser\Driver\Llk; |
20 | 19 | use Railt\Parser\Grammar; |
21 | 20 | use Railt\Parser\GrammarInterface; |