- First commit of first draft

This commit is contained in:
mcndave committed 2019-08-21 16:11:39 -04:00
commit 66c7b349d1
36 files changed
+820

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
namespace Picea\ControlStructure;
class ExtendsToken implements ControlStructure {
public string $token = "extends";
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $path) {
# Triming string's quotes
$path = trim($path, "\"\' \t");
$context->extendFrom = $path;
return "";
}
}