Electrotechnical and Computer Engineering
Vol. 40 No. 12 (2025): Proceedings of the Faculty of Technical Sciences
COMPILER DEVELOPMENT USING THE RUSTEMO LIBRARY
Abstract
The paper presents a compiler, named Rasti, developed witth the Rustemo library. Compiler name Rasti was chosen, because it is implemented in the Rust programming language. This work provides the theoretical foundation for all phases of compilation realized in Rasti, namely lexical, syntax and semantic analysis, with the greatest focus on syntax analysis. Rasti consists of a lexical analyzer (implemented manually and generated with Rustemo), a syntax analyzer (also implemented manually and generated with Rustemo), a semantic analyzer and an evaluator.
References
- [1] Растемо (енг. Rustemo) библиотека - https://www.igordejanovic.net/rustemo/ (посљедњи приступ: 05.05.2025)
- [2] Компајлери и интерпретери - https://www.spiceworks.com/tech/tech-general/articles/compiler-vs-interpreter-12-critical-differences-to-know/
- (посљедњи приступ: 05.05.2025)
- [3] Aho, A. V., Lam, M. S., Sethi, R., Ullman, J. D. Compilers: Principles, Techniques, and Tools. 2. издање. Boston: Addison-Wesley, 2006.
- [4] Cooper, K. D., Torczon, L. Engineering a Compiler. 3. издање. Cambridge, MA: Morgan Kaufmann, 2022.