Compiler frontend
Appearance
A compiler frontend analyzes the source code to build an internal representation of the program, called the intermediate representation or IR. It also manages the symbol table, a data structure mapping each symbol in the source code to associated information such as location, type and scope.
Overview
The frontend of a compiler translates human readable source code into an intermediate representation. In the process of generating the IR, the frontend parses a programming language, then analyzes the code through lexical analysis, semantics analysis and syntax analysis. To do this successfully the human readable code must comply with the syntax rules of whichever programming language it is written in.