01 / LANGUAGE

MOXI COMPILER SYSTEM / RUST

SAY WHATTHINGS ARE.MOXI BUILDS THEM.

A semantic spatial description language that compiles entities, materials and relations into deterministic voxel worlds.

SOURCE CODE ↗
BUILD CLASS / I AM THE BLACK WIZARDS
Buff Moxi mascot
SEMANTIC POWER██████████ 100%
LIVE SPECIMEN / 001MOXI SOURCE
MARKDOWN · DETERMINISTIC
atom CREAM { color = cream }
atom PINK  { color = pink }
atom FLAME { color = yellow }

material Cake  { voxel_atom = CREAM }
material Icing { voxel_atom = PINK }
material Fire  { voxel_atom = FLAME }

entity BirthdayCake {
  part Base {
    shape = cylinder(height=2, radius=5)
    material = Cake
  }

  part Frosting {
    shape = cylinder(height=1, radius=5.2)
    material = Icing
  }

  part Candle {
    shape = cylinder(height=3, radius=0.5)
    material = Cake
  }

  relation {
    Frosting surrounds Base
    Candle above Frosting
  }

  resolve voxel_size = 0.5
}

print BirthdayCake detail=low