Add ABCL disassembler post.
[blog.git] / lisp-syntaxes.post.unpublished
1 ;;;;;
2 title: Lisp syntaxes
3 tags: lisp
4 date: 2014-08-28 23:41:03
5 format: md
6 ;;;;;
7
8 Apart from the standard reader syntax, some libraries provide syntax for a DSL
9 of their own or to easily create objects.
10
11 # Strings
12
13 `#"foo"#` to allow strings with unescaped quotation marks included.
14
15 The following is similar to shell here documents and Perl syntax:
16
17     #>END
18     This is a text ended byEND
19
20 The resulting string will be `"This is a text ended by"`.
21
22 # Regular expressions
23
24 `#R""` is the DSL used by `CL-PPCRE` to construct regular expressions.
25
26 # SQL
27
28 `(query [select 'item :where [= [slot-value 'item 'id] 23]])` is the DSL for
29 `CL-SQL`.  The resulting expressions are later converted to regular SQL
30 statements.