Computer Science › Section G · Programming languages › Topic G.4
Language implementation: translation and compilers
A line of Python or Java means nothing to a processor until a translator has taken it apart, checked it and rebuilt it as instructions the machine can run. Seeing how that happens explains error messages, speed differences and why some mistakes are caught early and others never are.
In this topic
- From source program to object program
- Lexical analysis: finding the tokens
- Parsing: grammars and parse trees
- Worked example: a parse tree
- Ambiguous grammars
- The symbol table and type checking
- Code generation and optimisation
- Compiled, interpreted, or both
- Syntax, semantics and three kinds of error
- Worked example: classifying errors
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
