- Added the missing continue token

This commit is contained in:
Dave M. 2021-03-24 13:49:38 +00:00
parent 7588748ebd
commit 67040db155
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace Picea\ControlStructure;
class ContinueToken implements ControlStructure {
public string $token = "continue";
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) {
return "<?php continue; ?>";
}
}

View File

@ -49,6 +49,7 @@ class DefaultRegistrations implements LanguageRegistration
$compiler->registerControlStructure(new \Picea\ControlStructure\SwitchToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\DefaultToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\BreakToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\ContinueToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\ExtendsToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\SectionToken());
$compiler->registerControlStructure(new \Picea\ControlStructure\BlockToken());