A PHP library for evaluating a 5th Generation programming structure called FiveCode.
$ composer require mossengine/fivecode
{
"require": {
"mossengine/fivecode": "~2.0.0"
}
}
// Require the autoloader, normal composer stuff
require 'vendor/autoload.php';
// Instantiate a FiveCode class
$fiveCode = new Mossengine\FiveCode\FiveCode();
// Evaluate an array of FiveCode through the evaluate class method.
$fiveCode->evaluate([
['' => []],
['' => []],
['' => []],
['' => []]
]);
// Require the autoloader, normal composer stuff
require 'vendor/autoload.php';
// Use the static make method and immediately evaluate an array of instructions
Mossengine\FiveCode\FiveCode::make()
->evaluate([
['' => []],
['' => []],
['' => []],
['' => []]
]);
Read the docs for more details on FiveCode language structure or to create your own parsers/functions to provide more capabilities