Desain Mesin Compiler untuk Penganalisa Leksikal, Sintaksis, Semantik, Kode Antara dan Error Handling Pada Bahasa Pemrograman Sederhana
Abstract
In compilation techniques, the processes and stages carried out relate to translating source languages into target languages (object programs). Source languages are high-level programming languages that are easy to understand and easy to learn by humans, while target languages are low-level languages that are only understood by machines. In this study a compiler machine called Automatic LESSIMIC Analyzer is used which can be used to analyze, including lexical, syntactic, and semantic analysis. Compiler machines that are designed can also synthesize intermediate code, using assembler codes. The compiler engine will produce an analysis of the program code that the user enters in the form of an error message, if the program code is not in accordance with the grammar that applies generally in programming languages. In this research, the simple program code that is inputted is C ++ programming language, and successfully analyzes the lexical, semantic, syntactic, intermediate code generation and successfully detects errors from the program code entered with a success rate of 99%.
Downloads
References
Maukar, Lamria, S., & Widowati, H. (2006). “Kompilator Sederhana Untuk Bahasa Pemrograman Sangat Sederhana”. In Seminar Nasional Sistem dan Informatika, pp. 84–87, Bali, Indonesia, November 2006.
Suciadi, J. “Studi Analisis Metode-Metode Parsing Dan Interpretasi Semantik Pada Natural Language Processing”. Jurnal Informatika, vol. 2, pp. 13-22, Mei 2001.
Slamet, S., & Suhartanto, H. 1992. Teknik Kompilasi. Jakarta: Universitas Indonesia.
Lailela, S. N. “Perancangan Perangkat Ajar Teknik Kompilasi”. Jurnal CLICK, vol. 1, pp. 74–87, Desember 2017.
Vaishnavi, V., Saritha, M. & Milton, R.S. “Paraphrase identification in short texts using grammar patterns”. In 2013 3rd International Conference on Recent Trends in Information Technology, ICRTIT 2013. Chennai; India: IEEE, pp. 472–477. July 2013
Utdirartatmo, F. 2005. Teknik Kompilasi. Yogyakarta: Graha Ilmu.
Olivya, M. “Sistem Penilai Source Code Otomatis”. Jurnal Inspiration, vol. 5, pp. 44-55, Juni 2015.
Heriyanto. “Pendekatan Kompilator Dengan Teori Bahasa dan Automata”. Jurnal Ilmiah Go Infotech, vol. 03, pp. 28-35, Maret 2004.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).