@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | namespace Railt\Compiler\Grammar; |
11 | 11 | |
12 | -use Railt\Compiler\Grammar\PP2\Lexer; |
|
13 | 12 | use Railt\Compiler\Grammar\PP2\Parser; |
14 | 13 | use Railt\Compiler\Reader\GrammarInterface; |
15 | 14 | use Railt\Compiler\Reader\Result; |
@@ -54,16 +54,16 @@ discard block |
||
54 | 54 | foreach ($this->parse($grammar) as $rule) { |
55 | 55 | switch ($rule->getName()) { |
56 | 56 | case 'Pragma': |
57 | - echo \get_class($rule) . "\n"; |
|
57 | + echo \get_class($rule)."\n"; |
|
58 | 58 | break; |
59 | 59 | case 'Include': |
60 | - echo \get_class($rule) . "\n"; |
|
60 | + echo \get_class($rule)."\n"; |
|
61 | 61 | break; |
62 | 62 | case 'Rule': |
63 | - echo \get_class($rule) . "\n"; |
|
63 | + echo \get_class($rule)."\n"; |
|
64 | 64 | break; |
65 | 65 | case 'Token': |
66 | - echo \get_class($rule) . "\n"; |
|
66 | + echo \get_class($rule)."\n"; |
|
67 | 67 | break; |
68 | 68 | } |
69 | 69 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | public function make(): Result |
90 | 90 | { |
91 | 91 | foreach ($this->ast as $rule) { |
92 | - echo $rule . "\n\n"; |
|
92 | + echo $rule."\n\n"; |
|
93 | 93 | } |
94 | 94 | die; |
95 | 95 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | public function reduce(): Symbol |
21 | 21 | { |
22 | - throw new \LogicException('The ' . __METHOD__ . ' not implemented yet'); |
|
22 | + throw new \LogicException('The '.__METHOD__.' not implemented yet'); |
|
23 | 23 | } |
24 | 24 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | public function reduce(): Symbol |
21 | 21 | { |
22 | - throw new \LogicException('The ' . __METHOD__ . ' not implemented yet'); |
|
22 | + throw new \LogicException('The '.__METHOD__.' not implemented yet'); |
|
23 | 23 | } |
24 | 24 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | public function reduce(): Symbol |
21 | 21 | { |
22 | - throw new \LogicException('The ' . __METHOD__ . ' not implemented yet'); |
|
22 | + throw new \LogicException('The '.__METHOD__.' not implemented yet'); |
|
23 | 23 | } |
24 | 24 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | public function reduce(): Symbol |
21 | 21 | { |
22 | - throw new \LogicException('The ' . __METHOD__ . ' not implemented yet'); |
|
22 | + throw new \LogicException('The '.__METHOD__.' not implemented yet'); |
|
23 | 23 | } |
24 | 24 | } |