资 源 简 介
The L+ Compiler (lpc)
This project was developed by Emilio Pombo and I (Alejandro Segovia) as a mandatory assignment in 2006. The assignment was part of a Compilers course at the Catholic University of Uruguay and consisted in building a compiler for a C-like programming language from scratch.
We believe this project could be useful to anyone attending a compilers course, interested in compilers or just curious about how a compiler might work internally.
The language our compiler takes as input, called L+, supports most constructs from C (variables, branches, loops, functions, recursion and I/O) albeit with some limitations and some additions. The L+ compiler generates Java Bytecode. L+ programs can be run on any platform with a Java VM installed.
This program was developed a long time ago, and this was both Emilio and I"s second largest C++ program at the time. Consequently, the code sh