Files
picea/src/Syntax/CommentToken.php
T
mcndave bb29a56077 - Added while/endwhile and do/while syntaxes
- Fix the abstractclass requirement of parse() function
2022-12-19 19:36:39 +00:00

19 lines
395 B
PHP

<?php
namespace Picea\Syntax;
class CommentToken implements Syntax {
public string $token = "#";
protected string $tokenOpen = "\{\#";
protected string $tokenClose = "\#\}";
public function parse(\Picea\Compiler\Context &$context, string &$sourceCode)
{
$sourceCode = preg_replace("#({$this->tokenOpen})(.*?)({$this->tokenClose})#s", "", $sourceCode);
}
}