December 2004
Intermediate to advanced
400 pages
8h 29m
English
In this chapter we’ll walk through the process of designing and implementing a domain-specific embedded language and a metaprogram that operates on it. First we’ll explore a domain and identify its principal abstractions; using a specific example, we’ll get a sense of what they mean in the real world. Then we’ll design a DSEL to express those abstractions, with our example as a proof-of-concept. Finally, we’ll apply the tools and techniques you’ve learned in this book to write a metaprogram that processes the language to generate useful and efficient runtime components.
Every software engineer should be familiar with finite state machines (FSMs). The concept is so useful that ...
Read now
Unlock full access