14 lines
261 B
PHP
14 lines
261 B
PHP
<?php
|
|
|
|
namespace Picea\ControlStructure;
|
|
|
|
class IfToken implements ControlStructure {
|
|
|
|
public string $token = "if";
|
|
|
|
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments) {
|
|
return "<?php if ($arguments): ?>";
|
|
}
|
|
|
|
}
|