To define a domain:
- create a specific domain language
- write a parser and interpreter for the Abstract Syntax Tree (AST)
- generate code from an AST (compilation) or Eclipse plugins to work directly with the specific domain language, eventually work with a visual syntax on top of the specific domain language
I see this process as an extension of the Interpreter design pattern and I like it a lot.
Links:
- slides
- a blog
- 1 hour video
- Paper: Notable Design Patterns for Domain-Specific Languages (Diomidis Spinellis)
- Paper: THE DEBUGGABLE INTERPRETER DESIGN PATTERN
No comments:
Post a Comment