https://github.com/perdidev/unhas-compiler
Tugas mata kuliah TBO semester 3
https://github.com/perdidev/unhas-compiler
Last synced: 10 months ago
JSON representation
Tugas mata kuliah TBO semester 3
- Host: GitHub
- URL: https://github.com/perdidev/unhas-compiler
- Owner: perdiDev
- Created: 2023-11-19T13:27:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-19T13:44:24.000Z (over 2 years ago)
- Last Synced: 2025-02-07T11:11:15.176Z (over 1 year ago)
- Language: C++
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unhas-compiler
Tugas mata kuliah TBO semester 3
## ALUR KERJA
Spesifikasi
- harus punya compiler c atau c++, disarankan MingW64
Langkah-langkah menggunakan unhas-compiler:
1. Masuk ke directory ./unhas di terminal dengan cara `cd ./unhas`
2. Compile file UHCompiler dengan cara `g++ .\UHCompiler.cpp -o ../src/unhasc`, setelah itu akan muncul file baru pada ./src dengan nama unhasc.exe
3. Masuk ke direcctory ./src pada terminal dengan cara `cd ../src`
4. Kemudian buat file baru pada ./src dengan ekstensi .uh, kemudian masukkan kodingan sesuai aturan unhas-compiler
5. Setelah itu jalankan compiler untuk mengkompile .uh ke bahasa C, dengan cara jalankan perintah berikut pada terminal `./unhasc.exe .uh`
6. Compiler akan bekerja dan menghasilkan file baru pada ./out, file tersebut adalah hasil compile dari file yang ada pada src, file yang terbentuk adalah file C dan .exe
7. Compiler Done!