Skip to content

Commit 33ad9ab

Browse files
committed
Add License and readme
1 parent 6c11104 commit 33ad9ab

File tree

4 files changed

+159
-73
lines changed

4 files changed

+159
-73
lines changed

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1+
# Binary files
12
bin/
23
obj/
4+
5+
# Prerequisites
6+
*.d
7+
8+
# Object files
39
*.o
10+
*.ko
11+
*.obj
12+
*.elf
13+
14+
# Libraries
15+
*.lib
16+
*.a
17+
*.la
18+
*.lo
19+
20+
# Executables
21+
*.exe
22+
*.out
23+
*.app
24+
*.i*86
25+
*.x86_64
26+
*.hex
27+
28+
# Debug files
29+
*.dSYM/
30+
31+
# IDE specific files
32+
.vscode/
33+
.idea/
34+
*.swp
35+
*.swo
36+
437
azeng

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 [Your Name]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Azeng Programming Language
2+
3+
Azeng adalah bahasa pemrograman sederhana dengan sintaks dalam Bahasa Indonesia.
4+
5+
## Fitur
6+
7+
- Sintaks dalam Bahasa Indonesia
8+
- Tipe data: integer, float, string, boolean
9+
- Fungsi dengan parameter dan return value
10+
- Kontrol alur: if-else, loop
11+
- Operasi aritmatika dan perbandingan
12+
- Manipulasi string
13+
14+
## Instalasi
15+
16+
```bash
17+
git clone https://github.com/username/azeng.git
18+
cd azeng
19+
make
20+
```
21+
22+
## Penggunaan
23+
24+
```bash
25+
./bin/azeng program.az
26+
```
27+
28+
## Contoh Program
29+
30+
### Hello World
31+
```azeng
32+
bikin fungsi main() {
33+
cetak("Halo dunia!");
34+
}
35+
```
36+
37+
### Fungsi dan Tipe Data
38+
```azeng
39+
fungsi_int tambah(x: int, y: int) {
40+
kembali x + y;
41+
}
42+
43+
bikin fungsi main() {
44+
isi hasil = tambah(10, 5);
45+
cetak("Hasil: ");
46+
cetak(hasil);
47+
}
48+
```
49+
50+
### Loop
51+
```azeng
52+
bikin fungsi main() {
53+
isi i = 1;
54+
ulang (i < 5) {
55+
cetak("Perulangan ke-");
56+
cetak(i);
57+
isi i = i + 1;
58+
}
59+
}
60+
```
61+
62+
## Sintaks Dasar
63+
64+
### Variabel
65+
```azeng
66+
isi x = 10;
67+
isi nama = "John";
68+
isi nilai = 3.14;
69+
isi benar = benar;
70+
```
71+
72+
### Fungsi
73+
```azeng
74+
fungsi_int tambah(x: int, y: int) {
75+
kembali x + y;
76+
}
77+
78+
fungsi_float bagi(a: float, b: float) {
79+
kembali a / b;
80+
}
81+
82+
fungsi_bool lebih_besar(n1: int, n2: int) {
83+
kembali n1 > n2;
84+
}
85+
86+
fungsi_str gabung(kata1: str, kata2: str) {
87+
kembali kata1 + kata2;
88+
}
89+
```
90+
91+
### Kontrol Alur
92+
```azeng
93+
kalo (x > 5) {
94+
cetak("x lebih dari 5");
95+
}
96+
97+
ulang (i < 10) {
98+
cetak(i);
99+
isi i = i + 1;
100+
}
101+
```
102+
103+
## Lisensi
104+
105+
MIT License

readme.txt

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)