Construction Tools for Compiler Front-End and JLUCC's Implementation

Lei Liu · Journal of Changchun Post and Telecommunication Institute · 2005

Some problems of typical Compiler construction tools were pointed out, such as restrictions on grammars, negative efficiencies of embedded semantic actions, limitation of single target language and difficulties of maintenance. In order to solve these problems, a new compiler front-end construction tool -JLUCC (Jilin University Compiler Compiler) has been designed and implemented. JLUCC used Earley algorithm and some technologies involving reflection, object-oriented and design patterns. JLUCC can generate a lexer, a parser, ASTs and tree walkers automatically. JLUCC can support entire class of context-free grammar, multiple-pass and extension of types of target languages. JLUCC is a powerful tool which is easy to use, maintain and extend. At last, this paper looked forward the development tendency of compiler front-end construction tools in the future.

Read the paper · More papers on PaperTik