Fluxon Docs
Guide

Lexical basics

Comments, statements, and indentation-based blocks.

Comments

There is only one kind of comment — from a # character to the end of the line:

# This is a comment
x = 5   # This is also a comment

Fluxon has no // or /* */. One way — #.

Statements

Each statement ends at a new line. A semicolon (;) is not needed and is not used:

x = 5
y = 10

Blocks

A block is opened not with {} but with indentation. Each level is 2 spaces. The block ends when the indentation decreases:

if x > 0
  log "positive"
  log "this line is also inside the block"
log "outside the block"

On this page