17 lines
366 B
PHP
17 lines
366 B
PHP
<?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);
|
|
}
|
|
|
|
}
|