plum

#treesitter#compiler#wasm

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

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


2060bf0 — Peter John 2026-11-03T21:58:35+05:30
empty_record_embed e2e test: use xs.at(i) so the embedded source parses
plum-wasm-codegen/tests/empty_record_embed_e2e_test.rs CHANGED
@@ -68,7 +68,7 @@ fun main() -> Int =
68
68
  xs.push(Ship(speed: 5))
69
69
  total := 0
70
70
  for i := range 2
71
- total = total + xs[i].draw() + xs[i].act(1000)
71
+ total = total + xs.at(i).draw() + xs.at(i).act(1000)
72
72
  total
73
73
  ");
74
74
  // Panel: draw 10 + act 1000; Ship: draw 100 + act 1005.