18 lines
365 B
PHP
18 lines
365 B
PHP
<?php
|
|
|
|
namespace Picea\ControlStructure;
|
|
|
|
class ExtendsToken implements ControlStructure {
|
|
|
|
public string $token = "extends";
|
|
|
|
public function parse(\Picea\Compiler\Context &$context, ?string $path, string $token) {
|
|
# Triming string's quotes
|
|
$path = trim($path, "\"\' \t");
|
|
|
|
$context->extendFrom = $path;
|
|
|
|
return "";
|
|
}
|
|
}
|