Chapter 10. Translational Semantics: Code Generation

Everything is vague to a degree you do not realize till you have tried to make it precise.

—Bertrand Russell British author, mathematician, and philosopher (1872–1970)

Code generation can be regarded as a form of semantics. It specifies how the source language should be interpreted. This chapter, much of it based on work I did with Jos Warmer (Ordina, Netherlands), focuses on the specifics of code generation.

10.1 Code Generation and Language Design

Why should a software language engineer be interested in code generation? Is not creating the language itself a task with enough challenges and complexity without having to consider code generation? These are valid questions, ...

Get Software Language Engineering: Creating Domain-Specific Languages Using Metamodels now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.