mossengine / fivecode-parsers-maths
A Parser for the FiveCode library that provides math based logical instructions.
1.0.1
2021-07-05 14:08 UTC
Requires
- php: >=7.0
- ext-json: *
- mossengine/fivecode: ^2.2.4
- mossengine/helper: ^2.0
- mossengine/helpersarray: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2
- phpunit/phpunit: ~4.0 || ~5.0
This package is auto-updated.
Last update: 2024-11-05 21:25:14 UTC
README
A Parser for the FiveCode library that provides math based logical instructions.
Installation
$ composer require mossengine/fivecode-parsers-maths ^1.0.0
{ "require": { "mossengine/fivecode-parsers-maths": "^1.0.0" } }
Usage
// Require the autoloader, normal composer stuff require 'vendor/autoload.php'; Mossengine\FiveCode\FiveCode::make([ 'parsers' => [ 'include' => [ Mossengine\FiveCode\Parsers\Maths::class ] ], ]) ->evaluate([ ['maths.addition' => [ 1, 2 ]] ]) ->return(0);
Documentation
Read the docs for more details on FiveCode language structure