Skip to main content

Programming

Learn the syntax and semantics of the LAU programming language.

Syntax

LAU uses a clean, intuitive syntax heavily inspired by modern scripting languages.

Variables

Declare variables to store state.

var plantCount = 10

Operators

Standard arithmetic and logical operators are supported (+, -, *, /, &&, ||).

Structures

Control flow using if, else, and loops.

Functions

Encapsulate reusable code blocks.

Modules

Import and export logic across different LAU files.

Scopes

Variables have block-level scoping.

Errors

Handle runtime exceptions gracefully.

Data Types

Numbers, Strings, Booleans, and custom objects.

Lists

Arrays of items to manage multiple entities.