The THP programming language compiler https://thp.araozu.dev
Go to file
2024-10-05 14:05:03 -05:00
.vscode vscode 2023-10-14 06:14:13 -05:00
src test: function call semantics 2024-10-02 17:20:04 -05:00
.gitignore feat: store tokens in ast for basic nodes 2024-08-13 08:04:01 -05:00
Cargo.lock refactor: migrate all errors to new struct 2024-09-15 19:09:19 -05:00
Cargo.toml refactor: migrate all errors to new struct 2024-09-15 19:09:19 -05:00
CHANGELOG.md refactor: improve typechecking of binary operator 2024-10-02 12:31:16 -05:00
error_codes.yaml refactor: migrate all errors to new struct 2024-09-15 19:09:19 -05:00
Jenkinsfile feat: Add jenkinsfile 2024-10-05 14:05:03 -05:00
LICENSE.md Remove doc from compiler 2023-09-07 20:18:35 -05:00
README.md Add tests to function parameters 2024-03-18 16:41:11 -05:00

THP: Typed Hypertext Processor

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

Usage

TBD.

Requirements: A *nix system & cargo

# Clone the repo
git clone https://github.com/Araozu/thp-lang.git

# Generate an executable
cargo build --release

# The executable will be located in ./target/release/thp

# And then run it follow the instructions!
Usage: `thp [command] [options]`

Commands

  c _file_  Compiles _file_ in-place
  f _file_  Formats _file_
  r         Starts the REPL

  init      Initializes a new project in the current directory
  build     Builds the project
  fmt       Formats all files in the project
  watch, w  Starts compilation of the project in watch mode

  help, h   Print this message & exit

General options

  -h, --help    Print command-specific usage
  -v, --version Print version & exit