We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Монгол хэл
Jump to navigation
Jump to search
- The title of this article is not correct because of technical limitations. The correct title is actually ᠮᠣᠩᠭ᠋ᠣᠯ ᠬᠡᠯᠡ᠃.
For ease of use, I'm going to go ahead and use the wrong title.
Монгол хэл is a language based on Manchu Mongolian.
Syntax
| Монгол хэл | Pseudo code |
|---|---|
ᠳᠠᠷᠤᠮᠠᠯᠠᠬᠤ (comment)᠃ |
print(comment)
|
ᠣᠷᠣᠭᠤᠯᠬᠤ (something) [(prompt) ᠪᠡᠷ ᠰᠠᠨᠠᠭᠤᠯᠤᠮᠵᠢ ᠪᠣᠯᠭᠠᠨᠠ]᠃ |
input(something, [__prompt])
|
ᠬᠡᠷᠪᠡ (expr)᠃ |
if(expr)
|
ᠪᠠᠰᠠ ᠪᠤᠴᠠᠭᠠᠶᠠ ᠃ |
else
|
ᠪᠠᠰᠠ ᠪᠤᠴᠠᠭᠠᠶᠠ ᠬᠡᠷᠪᠡ (expr)᠃ |
elif(expr)
|
ᠳᠠᠪᠬᠤᠷᠳᠠᠭᠤᠯᠤᠨ 10 ᠤᠳᠠᠭᠠ᠃ |
for (i in range(10))
|
ᠳᠡᠭᠡᠷᠡ ᠳᠤᠷᠠᠳᠤᠭᠰᠠᠨ ᠠᠯᠬᠤᠮ ᠳᠠᠷᠠᠭᠠ ᠶᠢ ᠳᠠᠬᠢᠨ ᠳᠠᠪᠲᠠᠨ ᠳᠠᠪᠲᠠᠨ (expr) ᠪᠣᠯᠲᠠᠯᠠ true ᠪᠢᠰᠢ᠃ |
while(expr)
|
(var) ᠶᠢ (type) ᠪᠠᠷ ᠲᠣᠮᠢᠶᠠᠯᠠᠨᠠ ᠃ |
def var -> type
|
(var) ᠶᠢ (val) ᠪᠣᠯᠭᠠᠨ ᠲᠣᠬᠢᠷᠠᠭᠤᠯᠤᠨᠠ ᠃ |
var=val
|
ᠡᠶᠡ ᠨᠠᠶᠢᠷᠠ |
and
|
ᠡᠰᠡᠬᠦᠯᠡ |
or
|
ᠦᠭᠡᠢ |
not
|
ᠦᠨᠡᠨ |
true
|
ᠠᠮᠠᠷᠠᠯᠲᠠ |
false
|
ᠪᠦᠬᠦ ᠲᠣᠭᠠ ᠃ |
int
|
ᠪᠠᠭᠠ ᠲᠣᠭᠠᠨ ᠤ ᠃ |
float
|
ᠦᠰᠦᠭ ᠦᠨ ᠲᠡᠮᠲᠡᠭ ᠃ |
char
|
ᠦᠰᠦᠭ ᠨᠢ ᠲᠡᠮᠲᠡᠭ ᠃ |
str
|
ᠪᠦᠷ ᠃ |
bool
|
ᠲᠦᠷᠦᠯ ᠦᠭᠡᠢ᠃ |
void
|
Program
Hello, world!
ᠳᠠᠷᠤᠮᠠᠯᠠᠬᠤ "Hello, world!"᠃
A+B Problem
a, b, c ᠶᠢ ᠪᠦᠬᠦ ᠲᠣᠭᠠ ᠪᠠᠷ ᠲᠣᠮᠢᠶᠠᠯᠠᠨᠠ ᠃ ᠣᠷᠣᠭᠤᠯᠬᠤ a ᠣᠷᠣᠭᠤᠯᠬᠤ b c ᠶᠢ a+b ᠪᠣᠯᠭᠠᠨ ᠲᠣᠬᠢᠷᠠᠭᠤᠯᠤᠨᠠ ᠃ ᠳᠠᠷᠤᠮᠠᠯᠠᠬᠤ c