May 2015
Intermediate to advanced
296 pages
5h 10m
English
In this chapter, we will cover the following recipes:
In the last chapter, the basics of the frontend component for a language were defined. This included defining tokens for different types of expressions, writing a lexer to tokenize a stream of input, chalking out a skeleton for the abstract syntax tree of various expressions, writing a parser, and generating code for the language. Also, how various optimizations can be hooked to the frontend was explained.
A language is more powerful ...
Read now
Unlock full access