parser/trunk_compiler
2022-09-03 16:35:17 +01:00
..
bin feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00
build compiler/runtime: support var_dump 2022-09-03 16:35:17 +01:00
src compiler/runtime: support var_dump 2022-09-03 16:35:17 +01:00
.gitignore feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00
composer.json feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00
composer.lock feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00
go.mod feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00
README.md feature: basic PoC for compiling PHP to a Go-based runtime and custom IR 2022-09-02 23:38:05 +01:00

Trunk Compiler

This package contains the initial MVP for compiling PHP code to a native executable.

The initial proof of concept is powered by the nikic/php-parser package since it supports the entire PHP language. The compiler itself will be moved across to the Rust one found in trunk_parser once the concept has been thought out and proved to be useful.

Requirements

The compiler is written in PHP, so you will need the official PHP engine available. You will also need to have a recent version of Go installed (recommended >1.18).