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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.