Move C89 port to repository root

This commit is contained in:
Hermes Agent
2026-08-17 23:09:31 +00:00
parent 8c4a4d911c
commit 9ef9bf37cf
5 changed files with 0 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Peppermint C89 port
This directory is a clean native C89 implementation of the language behavior
present in the original TypeScript interpreter.
Original project: https://github.com/lainq/peppermint
Implemented subset:
- `let name := expression` bindings
- integer and floating-point literals
- quoted strings with basic escapes
- `+`, `-`, `*`, `/`, and `%`
- string concatenation with `+`
- `#` comments and line-oriented programs
- `@argv` and `@argv:N`
- `@env:NAME` and `@exit`
The original repository also contains a separate Brainfuck compiler/runtime;
that is not silently folded into this first language-core port.
## Build
Requires only a C compiler with C89 support:
```sh
make
./peppermint smoke.ppm hello
```
The build uses `-std=c89 -pedantic` and has no TypeScript, Node.js, Beef, or
third-party runtime dependency.