plum

#treesitter#compiler#wasm

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

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


plum-examples/strings.plum
import std/Bool
import std/Number
import std/Str

fun greet(name: Str) -> Str =
  "Hello, {name}!"

fun report(count: Int, total: Int) -> Str =
  "{count} of {total} complete"

fun empty() -> Str =
  ""

fun escaped() -> Str =
  "line one\nline two\ttabbed \"quoted\""