
A Simple Translator 47
In the rest of the chapters, we discuss theory and practice of lexical analyzers, syntax analyzers,
semantic analysis, enhanced grammars which aid semantic analysis, code generation options,
run-time environments, etc. As we go deeper into each of these topics, it will be necessary to always
keep the overall framework in mind, and it is hoped that the discussions in this chapter will help in
that direction.
EXERCISES
1. Some languages distinguish between keywords and reserved words. Suppose we want to
allow a keyword as an identifier under some circumstances, how can it be done?
2. We have a variable declaration statement ...