Download the PHP package tommyknocker/interpreter without Composer
On this page you can find all versions of the php package tommyknocker/interpreter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tommyknocker/interpreter
More information about tommyknocker/interpreter
Files in tommyknocker/interpreter
Download tommyknocker/interpreter
More information about tommyknocker/interpreter
Files in tommyknocker/interpreter
Vendor tommyknocker
Package interpreter
Short Description A simple functional language interpreter in PHP
License MIT
Package interpreter
Short Description A simple functional language interpreter in PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package interpreter
Functional Language Interpreter
This is a simple interpreter for a minimal functional language in PHP.
It supports:
- function calls,
- constants (numbers, strings, true, false, null),
- user-defined functions,
- nested functions.
Built-in Functions
(getArg, <i>)— gets the i-th input argument(array, ...)— creates an array from arguments(map, keys, values)— creates an associative array (like array_combine)(concat, a, b, ...)— concatenates strings(json, expr)— serializes expression to JSON
Installation
or
Usage Examples
Example 1
Example 2
Example 3
Example 4 with user-defined function upper
Example 5 with user-defined function if
Testing
or
All versions of interpreter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package tommyknocker/interpreter contains the following files
Loading the files please wait ...