@@ -111,7 +111,7 @@ |
||
| 111 | 111 | * @param string $separator |
| 112 | 112 | * @param callable $parser |
| 113 | 113 | * |
| 114 | - * @return array |
|
| 114 | + * @return TableEntryASTNode[] |
|
| 115 | 115 | */ |
| 116 | 116 | protected function delimited($start, $stop, $separator, callable $parser) { |
| 117 | 117 | $a = []; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * LuaParser.php |
|
| 4 | - * |
|
| 5 | - * @since 20/12/2015 18:45 |
|
| 6 | - * @author Koen Vlaswinkel |
|
| 7 | - */ |
|
| 3 | + * LuaParser.php |
|
| 4 | + * |
|
| 5 | + * @since 20/12/2015 18:45 |
|
| 6 | + * @author Koen Vlaswinkel |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua; |
| 10 | 10 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @param $input |
|
| 56 | + * @param TableASTNode $input |
|
| 57 | 57 | * |
| 58 | 58 | * @return array |
| 59 | 59 | * @throws LuaParseException |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * LuaToPhpConverter.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 20/12/2015 20:05 |
|
| 7 | - */ |
|
| 3 | + * LuaToPhpConverter.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 20/12/2015 20:05 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * ASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:28 |
|
| 7 | - */ |
|
| 3 | + * ASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:28 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TableASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:34 |
|
| 7 | - */ |
|
| 3 | + * TableASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:34 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * NumberASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:33 |
|
| 7 | - */ |
|
| 3 | + * NumberASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:33 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * LiteralASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:30 |
|
| 7 | - */ |
|
| 3 | + * LiteralASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:30 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * NilASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:49 |
|
| 7 | - */ |
|
| 3 | + * NilASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:49 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TableEntryASTNode.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 21/12/2015 10:35 |
|
| 7 | - */ |
|
| 3 | + * TableEntryASTNode.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 21/12/2015 10:35 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua\AST; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * LuaTokenStream.php |
|
| 4 | - * |
|
| 5 | - * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | - * @since 20/12/2015 18:45 |
|
| 7 | - */ |
|
| 3 | + * LuaTokenStream.php |
|
| 4 | + * |
|
| 5 | + * @author Koen Vlaswinkel <[email protected]> |
|
| 6 | + * @since 20/12/2015 18:45 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Vlaswinkel\Lua; |
| 10 | 10 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | protected function skipComment() { |
| 107 | 107 | $this->readWhile( |
| 108 | - function ($char) { |
|
| 108 | + function($char) { |
|
| 109 | 109 | return $char != "\n"; |
| 110 | 110 | } |
| 111 | 111 | ); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | protected function readNumber() { |
| 162 | 162 | $hasDot = false; |
| 163 | 163 | $number = $this->readWhile( |
| 164 | - function ($char) use (&$hasDot) { |
|
| 164 | + function($char) use (&$hasDot) { |
|
| 165 | 165 | if ($char == '.') { |
| 166 | 166 | if ($hasDot) { |
| 167 | 167 | return false; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | protected function readIdentifier() { |
| 182 | 182 | $first = false; |
| 183 | 183 | $identifier = $this->readWhile( |
| 184 | - function ($char) use (&$first) { |
|
| 184 | + function($char) use (&$first) { |
|
| 185 | 185 | if ($first) { |
| 186 | 186 | $first = false; |
| 187 | 187 | return $this->isStartIdentifierCharacter($char); |