diff options
Diffstat (limited to 'src/NXP/Classes/Token.php')
-rw-r--r-- | src/NXP/Classes/Token.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/NXP/Classes/Token.php b/src/NXP/Classes/Token.php index 7532e77..ae460a9 100644 --- a/src/NXP/Classes/Token.php +++ b/src/NXP/Classes/Token.php @@ -22,22 +22,13 @@ class Token public const Space = 'space'; - public string $type = self::Literal; - - public $value; - - public ?string $name; - public ?int $paramCount = null;//to store function parameter count in stack /** * Token constructor. * */ - public function __construct(string $type, $value, ?string $name = null) + public function __construct(public string $type, public mixed $value, public ?string $name = null) { - $this->type = $type; - $this->value = $value; - $this->name = $name; } } |