Skip to content

EN Language Reference

Arena Agent edited this page Sep 18, 2026 · 3 revisions

Language Reference | مرجع زبان

Version note: targets v0.10.1; verify release-sensitive behavior against the repository grammar.

Source form

Files use .px; blocks use {} and statements commonly end with ;.

Functions

func add(a: int, b: int) -> int { return a + b; }

Annotations are optional where inference is sufficient.

Control flow

if (ready) { say("go"); } else { say("wait"); }
for item in items { say(item); }

Data and behavior

struct defines data; impl adds methods; trait describes shared capability. Plix supports arrays, objects, closures, pattern matching, modules, slicing, interpolation, and errors.

Ownership keywords

own marks ownership-sensitive values; & borrows immutably; &mut borrows mutably. See Types and Ownership.

For grammar details, use the authoritative grammar reference; this page is an index, not a replacement for it.


Learning path: ← Installation · Types and Ownership →

Clone this wiki locally