- First task of v2 done, tokens can now have unlimited options attached to it

This commit is contained in:
mcndave committed 2023-02-02 16:46:46 +00:00
1 parent afeb8789b5
commit acd9f8c72e
8 files changed
+82 -41

No files matched your search

+8
View File
@@ -88,6 +88,14 @@ abstract class Context {
}
public function tokenOptions(string $token, bool $export = false) : array|string
{
$options = explode('.', strtolower($token));
array_shift($options);
return $export ? var_export($options, true) : $options;
}
public function pushFunction($name, Callable $callable) : void
{
$this->functionStack[$name] = $callable;