Thinkycap logo
Worksheets

Compiler Construction

Bachelor of Science in Computer Science · University · Core Courses

In this unit you will: know the compiler phases and lexical analysis; understand context-free grammars, LL parsing, and LR parsing; apply semantic analysis, symbol tables, and three-address code; classify optimizations and register allocation; assign errors and techniques to compiler phases.

There are 50 exercises to practice: interaktive Aufgaben. Every answer gets instant feedback, free and without signing up.

Practice nowCompiler ConstructionBachelor of Science in Computer Science · University · Core Courses · 50 exercisesPractice now

What's included

  • Know the compiler phases and lexical analysis
  • Understand context-free grammars · LL parsing · and LR parsing
  • Apply semantic analysis · symbol tables · and three-address code
  • Classify optimizations and register allocation
  • Assign errors and techniques to compiler phases

Example questions

  1. What does the scanner pass to the parser?
  2. How many tokens does a typical scanner produce from “x = a + 42;”?
  3. True or false? “An interpreter translates the whole program in advance into an executable machine code file.”

Solve these and more questions now →

More topics in Core Courses