AutolangDocs

Syntax

The fundamental syntax rules of Autolang.

File Extension & Execution

Autolang source files must use the .atl extension. Code is executed from top to bottom at file scope. Each statement is written on its own line — semicolons are not required.

print("Hello ") println("World")

Code Blocks

Curly braces {} define a block of code. Blocks are used in control flow statements such as if, while, and for.

val condition = true if (condition) { println("Condition is true") }

Comments

Use // for single-line comments. Everything after // on the same line is ignored. Use /* */ for multi-line comments — everything inside /* and */ is ignored.

// This is a single-line comment println("Hello") // Inline comment /* This is a multi-line comment */ println("World")

Whitespace & Case Sensitivity

Whitespace and indentation do not affect program behavior — indentation is recommended only for readability. Autolang is case-sensitive: identifiers with different casing are treated as distinct names.

val name = "John" val Name = "Doe" println(name) // John println(Name) // Doe