Dan's Brain

Compilers: Principles Techniques and Tools


A Compiler reads a program in a Source Language and translates it in a target language

  • Compiler translates
  • Linker resolves external mamory addresses
  • Loader puts together object files into memory

Compiler

Analysis

Lexical analysis | Scanning

The Lexer groups character, the Lexical Analyzer outputs Tokens for each Lexem. The token are then used by the Syntax Analyzer to get information from the symbol-table

  • Lexemes

    Meaningful groups of characters

  • Tokens

    <token-name,attribute-value>

Synthesis