O'Reilly logo

Software Language Engineering: Creating Domain-Specific Languages Using Metamodels by Anneke Kleppe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required