O'Reilly logo

Domain Specific Languages by Martin Fowler

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 54. Embedment Helper

An object that minimizes code in a templating system by providing all needed functions to that templating mechanism.

image

Many systems allow you to extend the capability of a simple representation by embedding general-purpose code into that representation to do things that otherwise would not be possible. Examples include embedding code into web page templates, putting code actions into grammar files, and putting callouts into code generation templates. This mechanism of general-purpose Foreign Code adds a lot of power to the representation it’s embedded into, without complicating the basic representation itself. However, ...

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