tacoberu / hayo-decoder
Hayo scripting language decoder and parser.
v0.3.13
2026-06-03 02:59 UTC
Requires
- php: >=7.4
- ext-json: *
- tacoberu/hayo-ast: ~0.1.5
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- slevomat/coding-standard: ^8.24
- spaze/phpstan-disallowed-calls: ^4.6
- tracy/tracy: ^2.4
README
A PHP library that parses Hayo source code and creates an Abstract Syntax Tree (AST), which can then be compiled into a target language.
Note: This project is not useful on its own as it is a component of the php-hayo project.
About Hayo
Hayo is a purely functional scripting language. A script is passed as a string, compiled into a function, and called with concrete data. The result is always the last evaluated expression. No side effects are possible.
For more information about the language syntax, see SYNTAX.md.
Installation
You can install the package via Composer:
composer require tacoberu/hayo-decoder
Usage
use Taco\Hayo\HayoDecoder; $decoder = new HayoDecoder(); $ast = $decoder->decode('... hayo source code ...');