concept datum in category dsl

This is an excerpt from Manning's book DSLs in Action.
Table 1.1. Commonly used DSLs
DSL
Used for
SQL Relational database language used to query and manipulate data Ant, Rake, Make Languages for building software systems CSS Stylesheet description language YACC, Bison, ANTLR Parser-generator languages RSpec, Cucumber Behavior-driven testing language in Ruby HTML Markup language for the web
Besides the support of syntactic macros, the Common Lisp programming language has lots of other features that make it a natural fit for metaprogramming purposes. Its uniform representation of code and data, the recursive evaluation model, and the fact that it uses expression-based semantics as opposed to statement-based ones are some of the features that you’ll enjoy using.
By using the QUOTE special form, data syntax can be embedded easily into the code syntax. Lisp macros are good examples of this philosophy. In fact, Lisp extends this paradigm of data as code and offers a full-blown template mechanism for writing metaprograms. In Common Lisp, we call this quasiquotation. In Clojure, the same feature is implemented through syntax quote, unquote, and splicing unquote. Here’s the definition of the macro defstruct in Clojure:
(defmacro defstruct
[name & keys]
`(def ~name (create-struct ~@keys)))The syntax quote character, represented by a backquote (`) causes the form that follows it to be interpreted as Lisp data and works like normal quoting. But within the syntax quoted form, the unquote character (~) turns off quoting and lets Lisp compute that form. A similar technique in Common Lisp, the quasiquotation, lets you write templates of data in which some parts of the data are fixed, but the others are computed. It’s pretty much a complete template sublanguage embedded within the syntax of Lisp.