Online Compiler

Write and compile Automata Language code directly in your browser. Get instant feedback on syntax, semantics, and generated assembly.

main.af
Compilation Results

Language Guide

Syntax Overview

int variable = value; Integer declaration
string text = "hello"; String declaration
print(expression); Output statement
read(variable); Input statement

Arithmetic Operations

int result = (x + y) * z / 2 - 1;

Supports +, -, *, / with proper precedence and parentheses.

Control Flow

if (condition) { // statements } else { // alternative statements }

Conditional execution with if/else statements and comparison operators.

String Operations

string message = "Hello " + name + "!"; print(message);

String concatenation using the + operator for combining text.