Skip to content

iamluc/script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script

Script is a PHP library for parsing and executing Lua-like scripts.

Example

<?php

$parser = new \Iamluc\Script\Parser();
$sandbox = new \Iamluc\Script\Sandbox();

$script = <<<EOS
print([[Hello "cruel" world !!]])
EOS;

$sandbox->eval($parser->parse($script));
echo $sandbox->getOutput();

License

MIT

About

Lua-like scripts interpreter in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages