plum

#treesitter#compiler#wasm

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

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


f13d4c2Peter John 2026-09-07T10:30:59+05:30
fix: repair binary literals corrupted in plum-examples/basics.plum
Files changed (1) hide show
  1. plum-examples/basics.plum +2 -6
plum-examples/basics.plum CHANGED
@@ -10,8 +10,7 @@ GREETING = "hello"
10
10
  fun main() =
11
11
  dec := 42
12
12
  hex := 0xFF
13
- bin := 0b1
13
+ bin := 0b1010
14
- 010
15
14
  big := 1_000_000
16
15
  flt := 3.14
17
16
  flt2 := 12.0f
@@ -20,10 +19,7 @@ fun main() =
20
19
  yes := True
21
20
  no := False
22
21
  sum := 1 + 2 * 3 - 4 / 2
23
- bits := 0b1
24
- 100 & 0b1
22
+ bits := 0b1100 & 0b1010 | 0b0001
25
- 010 | 0b0
26
- 001
27
23
  shifted := 1 << 4
28
24
  cmp := sum > 0 && bits != 0 || False
29
25
  grouped := {1 + 2} * {3 - 1}