Language Basics & Syntax Rules
मूलभूत नियम व वाक्यरचना
MarathiCode syntax is designed to be clean, readable, and structured. This section outlines fundamental syntactic rules, brace scoping, and character set rules.
1. Statement Structure
Statements in MarathiCode are separated by newlines. Semicolons are not required. Whitespace and indentation are ignored inside blocks.
syntax.mr
// Variable assignment statement
चल x = १०
// Print statement
छापा(x)2. Block Scoping with Braces
Blocks of code inside conditional statements (जर), loops (पर्यंत), and functions (कार्य) are enclosed within curly braces { }.
blocks.mr
जर १० > ५ तर {
छापा("१० मोठे आहे")
}3. Unicode Identifiers
Variable and function names can use Marathi Devanagari letters, ASCII letters, underscores, and numbers:
चल वय = २५(Valid Devanagari variable)चल total_गुण = ९५(Valid mixed Marathi + ASCII)कार्य बेरीज_१(a, b)(Valid function name)