Masta(मस्त)Lang is a Marath-Moli, Easy Pseudo Language that interprets Marathi-English Code with ease made in Python.
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.
- Simple Marathi-English Syntax: Write code using Marathi-English constructs.
- Code Interpretation: The language interprets code with ease, making it straightforward to see results.
- Interactive Playground: Test and run your MastaLang code directly in a web-based playground.
- Comments: Use
Ignore Maar
to write comments in your code. - Print Statements: Use
Bol
to output values. - Variable Initialization: Initialize variables using
He Bagh <name> mhanje <value>
. - Arithmetic Operations: Perform arithmetic using keywords like
adhik
(addition),vaja
(subtraction),guna
(multiplication), andbhag
(division). - Conditional Statements: Use
Jar
for if statements,Nahi Tar
for else, andSod
to end the conditional block. - Loop Statements: Loop with
Chal
andTe
, and end loops withSod
.
Ignore Maar Comments can be written in the form of Ignore Maar
Bol "Namaskar Mandali"
Line Maar
Ignore Maar Initialize the sum variable
He Bagh sum mhanje 10
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
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 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