Go to file
2022-08-09 00:46:50 +01:00
.github/workflows Update tests.yml 2022-07-26 10:45:12 +01:00
blog wip 2022-08-01 14:14:17 +01:00
meta rs: experiment with a PHP to Rust to binary compiler 2022-07-29 16:32:25 +01:00
phpast parser: make ternary an infix expression to ensure correct precedence 2022-08-06 01:40:50 +01:00
trunk_gc gc: allow dead code 2022-08-08 22:08:13 +01:00
trunk_interner interner: README 2022-08-08 11:55:18 +01:00
trunk_lexer lexer: support looking ahead based on string literal 2022-08-09 00:46:50 +01:00
trunk_parser parser: support prefix minus / negation 2022-08-09 00:05:42 +01:00
trunk_value value: start adding tests for overloaded ops 2022-08-06 11:28:15 +01:00
.gitignore rs: experiment with a PHP to Rust to binary compiler 2022-07-29 16:32:25 +01:00
Cargo.toml gc: init 2022-08-08 11:57:10 +01:00
README.md docs: README 2022-07-20 20:36:39 +01:00

Trunk

A set of libraries for working with PHP in Rust.

Overview

I originally started with this repository as an experiment. I wanted to see how feasible a handwritten PHP parser would be.

The goal was to have a set of tools that I could use to write my own utilities. The folders and crates in this repository serve as a guideline and target for the project.

Goals

  • A full-featured lexer and parser for PHP 8.1+
  • An experimental runtime for PHP (excl. extensions)
  • A static-analyser for PHP code.

Bold text indicates the current goal.

Contributing

All contributions are welcome. Please open a pull request with a descriptive title and description.

Please ensure all tests are passing on your pull request and that you add tests to cover your new feature or bug fix.

Credits