The THP programming language compiler https://thp.araozu.dev
Go to file
2024-03-09 12:21:52 -05:00
.vscode vscode 2023-10-14 06:14:13 -05:00
src Use ref to a Token instead of a string value 2024-03-09 12:21:52 -05:00
.gitignore [Syntax] Parse function call as a statement 2023-10-05 06:31:24 -05:00
Cargo.lock Use colored for CLI output 2023-12-12 20:58:09 -05:00
Cargo.toml Use colored for CLI output 2023-12-12 20:58:09 -05:00
CHANGELOG.md Improve function semantic check 2024-03-09 08:05:51 -05:00
LICENSE.md Remove doc from compiler 2023-09-07 20:18:35 -05:00
README.md Changes to codegen to move from JS to PHP generation 2023-09-08 19:34:08 -05:00

THP: Typed Hypertext Processor

Types and a new syntax for PHP, because I'm forced to use it at work.

Usage

Singular files

Inside an existing PHP codebase, files are converted to THP one at a time, or new files are written in THP.

There must be a thp.config.yaml at the root of the project, which configures the compiler.

Every file is compiled in place.

Project mode

The whole project uses THP. Work in progress.