Domain-specific Languages and Code Synthesis Using Haskell
Domain-specific Languages and Code Synthesis Using Haskell
复制标题
使用 Haskell 进行特定领域语言和代码合成
作者:
Andy Gill
There are many ways to give instructions to a computer: an electrical engineer might write a MATLAB program; a database administrator might write an SQL script; a hardware engineer might write in Verilog; and an accountant might write a spreadsheet with embedded formulas. Aside from the difference in language used in each of these examples, there is an important difference in form and idiom. Each uses a language customized to the job at hand, and each builds computational requests in a form both familiar and productive for programmers (although accountants may not think of themselves as programmers). In short, each of these examples uses a DSL (domain-specific language).