https://github.com/namberino/vilang
The Vietnamese Programming Language
https://github.com/namberino/vilang
cpp interpreter programming-language vietnamese
Last synced: 5 months ago
JSON representation
The Vietnamese Programming Language
- Host: GitHub
- URL: https://github.com/namberino/vilang
- Owner: namberino
- License: apache-2.0
- Created: 2024-07-17T03:19:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T07:29:51.000Z (over 1 year ago)
- Last Synced: 2025-06-26T00:04:52.391Z (12 months ago)
- Topics: cpp, interpreter, programming-language, vietnamese
- Language: C++
- Homepage:
- Size: 322 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vilang: The Vietnamese Programming Language
This is a programming language with support for Vietnamese syntaxes.
## Syntax
```vilang
lớp Tree
{
tạo(vật, độ_sâu)
{
đây.vật = vật;
đây.độ_sâu = độ_sâu;
nếu (độ_sâu > 0)
{
biến vật2 = vật + vật;
độ_sâu = độ_sâu - 1;
đây.trái = Tree(vật2 - 1, độ_sâu);
đây.phải = Tree(vật2, độ_sâu);
}
thì
{
đây.trái = không;
đây.phải = không;
}
}
check()
{
nếu (đây.trái == trống)
{
trả đây.vật;
}
trả đây.vật + đây.trái.check() - đây.phải.check();
}
}
```
## Building and running
You can build this by running `make compile` and run this by running `./bin/vilang .vila`