- First commit of first draft
This commit is contained in:
commit
66c7b349d1
36 files changed
+820
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Picea\Syntax;
|
||||
|
||||
class CommentToken implements Syntax {
|
||||
|
||||
protected string $tokenOpen = "\{\#";
|
||||
|
||||
protected string $tokenClose = "\#\}";
|
||||
|
||||
public function parse(/*\Picae\Compiler\Context*/ &$context, string &$sourceCode)
|
||||
{
|
||||
$sourceCode = preg_replace("#({$this->tokenOpen})(.*?)({$this->tokenClose})#s", "", $sourceCode);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user