feat: readme

This commit is contained in:
Fernando Araoz 2025-01-05 13:01:21 -05:00
parent 9d89f2fad0
commit f8d3b791b7
3 changed files with 29 additions and 1 deletions

View File

@ -35,6 +35,7 @@ Now in Zig!
- [x] Parse minimal variable binding - [x] Parse minimal variable binding
- [x] Parse minimal statement - [x] Parse minimal statement
- [x] Parse minimal module - [x] Parse minimal module
- [x] Generate error messages - [x] Generate error messages on number lexing
- [x] Generate error messages on string lexing

25
README.md Normal file
View File

@ -0,0 +1,25 @@
# The THP programming language
This is the source code for the THP programming language.
THP stands for "Typed Hypertext Preprocessor", and is a
functional first, strong, nominal, statically typed language
that compiles down to PHP.
It is completely written in Zig, it is being rewritten from Rust.
There is documentation and a WIP spec at
[https://thp-lang.org](https://thp-lang.org).
## Install
This software is nowhere near to be useful.
This program has exactly 1 dependency: the zig standard library.
- Install [the Zig programming language](https://ziglang.org/).
- Run `zig build -Doptimize=ReleaseFast`
- The binary will be located at `zig-out/bin/thp`
- Profit

View File

@ -193,3 +193,5 @@ test "should fail on newline after backslash" {
try std.testing.expect(false); try std.testing.expect(false);
} }
// TODO: test error messages