@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | abstract class SymbolType |
| 6 | 6 | { |
| 7 | - public const NT_ROOT = 0x00; // Root symbol fot LL(1) parser |
|
| 7 | + public const NT_ROOT = 0x00; // Root symbol fot LL(1) parser |
|
| 8 | 8 | |
| 9 | 9 | public const T_PLUS = 0x01; // + |
| 10 | 10 | public const T_STAR = 0x02; // * |
@@ -30,19 +30,19 @@ |
||
| 30 | 30 | CharBufferInterface $buffer, |
| 31 | 31 | TokenFactoryInterface $tokenFactory |
| 32 | 32 | ): TokenMatcherContextInterface { |
| 33 | - $onConstruct = function (): void { |
|
| 33 | + $onConstruct = function(): void { |
|
| 34 | 34 | unset($this->token); |
| 35 | 35 | }; |
| 36 | - $onSetNewToken = function (int $tokenType) use ($tokenFactory): void { |
|
| 36 | + $onSetNewToken = function(int $tokenType) use ($tokenFactory): void { |
|
| 37 | 37 | $this->token = $tokenFactory->createToken($tokenType); |
| 38 | 38 | }; |
| 39 | - $onGetToken = function (): Token { |
|
| 39 | + $onGetToken = function(): Token { |
|
| 40 | 40 | return $this->getToken(); |
| 41 | 41 | }; |
| 42 | - $onSetMode = function (string $mode): void { |
|
| 42 | + $onSetMode = function(string $mode): void { |
|
| 43 | 43 | $this->mode = $mode; |
| 44 | 44 | }; |
| 45 | - $onGetMode = function (): string { |
|
| 45 | + $onGetMode = function(): string { |
|
| 46 | 46 | return $this->mode; |
| 47 | 47 | }; |
| 48 | 48 | |