- Work on extension integration.

- WIP of the inline view token
- Began work on compiled-code caching
This commit is contained in:
mcndave committed 2019-09-04 15:14:49 +00:00
1 parent 66c7b349d1
commit f8e3dbd60f
8 files changed
+105 -11

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@
namespace Picea\Extension;
interface Extension {
public function parse(\Picae\Compiler\Context &$context, string $sourceCode);
public function parse(\Picae\Compiler\Context &$context, string $sourceCode, string $token);
}
+1 -1
View File
@@ -7,7 +7,7 @@ class JsonExtension implements Extension {
public string $token = "json";
public int $flags = JSON_HEX_TAG | \JSON_HEX_APOS | \JSON_HEX_QUOT | \JSON_THROW_ON_ERROR;
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments) {
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) {
return "<?php echo json_encode($arguments, {$this->flags}) ?>";
}