Skip to content

Playground

Try Lumen directly in your browser. Edit the code and click Run to see the results.

main.lm.md ×
Loading WebAssembly runtime...
Terminal
neutral
Click Run to execute the code.

Quick Examples

Hello World
lumen
cell main() -> String
  return "Hello, World!"
end
Fibonacci
Pattern Matching
Records with Constraints
Error Handling

Running Locally

To run Lumen on your machine:

bash
# Install
cargo install lumen-lang

# Create a file
cat > hello.lm.md << 'EOF'
cell main() -> String
  return "Hello, World!"
end
EOF

# Run it
lumen run hello.lm.md

More Examples

MIT Licensed