picea/src/ControlStructure/UseToken.php
Dave Mc Nicoll bb29a56077 - Added while/endwhile and do/while syntaxes
- Fix the abstractclass requirement of parse() function
2022-12-19 19:36:39 +00:00

14 lines
291 B
PHP

<?php
namespace Picea\ControlStructure;
class UseToken implements ControlStructure {
public string $token = "use";
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) {
$context->useStack[] = $arguments;
return "";
}
}