plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


05dcf42 — Peter John 2026-11-13T18:18:22+05:30
tests: no top-level funs outside tests/examples (721 moved): helpers with parameters of a file with no main and no helper without parameters are funs of its `primitive XTest[UnitTest]`, otherwise every helper is a static of a `primitive X` named after the file (`SlicePushHelper.run`, `ShadowedFreeFn.localClosure`), callers in tests, mains, other types' bodies and constants qualified; a static passed as a value is a closure (`run(n, |m: Int| go(m))`: statics are not values); the fbip fuzzer's helpers are funs of `GTest`, and its template works again (`std/Test`, the `EOP` terminator at column 0, bodies indented for funs, programs written under a `tests` folder); the module fixtures mathx, shapes, Palette, hue and tint keep their module functions for the module-rule tests; parser: a bare call of a sibling static yields to a local, pattern binder or closure parameter in scope of that name, not only to a parameter (a binder `helper` in `Wrap(helper) => helper(1)` called the static `helper`), with a parser test; codegen: an `extern fun` static skips only its `io` (statics lost the receiver slot in e325f301; the merge with d6a473be still skipped two and panicked on every game test), with a test; driver test's `main` on passes_upcasts qualified; docs (language.md: unqualified statics and shadowing)

This diff is too large to display.