tacoberu/hayo-decoder

Hayo scripting language decoder and parser.

Maintainers

Package info

github.com/tacoberu/php-hayo-decoder

pkg:composer/tacoberu/hayo-decoder

Statistics

Installs: 12

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.13 2026-06-03 02:59 UTC

This package is auto-updated.

Last update: 2026-06-03 03:01:45 UTC


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 ...');