Marath-Moli, Easy Pseudo Language that interprets
Marathi-English Code with ease made in Python.

📁 main.masta

Documentation

MastaLang is a fun project of Marath-Moli, Easy Pseudo Language that interprets Marathi-English Code with ease. Source code of interpreter is written in Python.

Print Statement

Print Statement can be written in the form of Bol.

Bol "Namaskar Mandali"
        

Comments

Comments can be written in the form of Ignore Maar.

Comments can be written in the form of Ignore Maar 

Ignore Maar Initialize the sum variable
He Bagh sum mhanje 0
        

Horizontal Line

Horizontal Line can be written in the form of Line Maar.

Line Maar
        

Variable Initialization

Variable Initialization can be written in the form of
He Bagh name mhanje value.

Ignore Maar Initialize the sum variable
He Bagh sum mhanje 10
        

Arithmetic operations

Arithmetic operations can be written in the form of
sum + is adhik
sum - is vaja
sum * is guna
sum / is bhag.

Ignore Maar Arithmetic operations

He Bagh a mhanje 20 adhik 10
Bol a

He Bagh b mhanje 20 vaja 10
Bol b

He Bagh c mhanje 20 guna 10
Bol c

He Bagh d mhanje 20 bhag 10
Bol d
        

Conditional statements

Conditional statements can be written in the form of
if as Jar
else as Nahi Tar
end if as Sod.

Ignore Maar Conditional Example

He Bagh x mhanje 7

Jar x > 5
    Bol "x motha ahe"
Nahi Tar
    Bol "x chota ahe"
Sod

Ignore Maar Parat 0 Ends Code Here
Parat 0  
        

Loop statements

Loop statements can be written in the form of Chal and Te if we want to loop from 1 to 5 then we can write Chal i 1 Te 5 and to end write Sod.

Ignore Maar Initialize the sum variable
He Bagh sum mhanje 0

Line Maar
Line Maar

Ignore Maar Loop from 1 to 5
He Bagh i mhanje 1
Chal i 1 Te 5
    He Bagh sum mhanje sum adhik i
    Bol "Value i chi ahe :"
    Bol i
    He Bagh i mhanje i adhik 1
Sod

Ignore Maar Print the final result
Bol "Final Sum ahe :"
Bol sum
Line Maar
Line Maar

Ignore Maar End of program
Parat 0               
        

Made by Amey Pandit with Masta ❤️ mood.