https://github.com/edicl/cl-interpol
Common Lisp surface syntax niceties
https://github.com/edicl/cl-interpol
common-lisp
Last synced: 3 months ago
JSON representation
Common Lisp surface syntax niceties
- Host: GitHub
- URL: https://github.com/edicl/cl-interpol
- Owner: edicl
- Created: 2011-08-30T08:47:06.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T20:34:43.000Z (over 3 years ago)
- Last Synced: 2026-01-11T17:53:06.379Z (3 months ago)
- Topics: common-lisp
- Language: Common Lisp
- Homepage: http://edicl.github.io/cl-interpol/
- Size: 211 KB
- Stars: 70
- Watchers: 9
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
- awesome-cl - cl-interpol - A set of reader modifications to allow string interpolation. [BSD][15]. (Miscellaneous ##)
README
--------------------------------------------------
CL-INTERPOL - String interpolation for Common Lisp
--------------------------------------------------
CL-INTERPOL is a library for Common Lisp which modifies the reader so
that you can have interpolation within strings similar to Perl or Unix Shell
scripts. It also provides various ways to insert arbitrary characters
into literal strings even if your editor/IDE doesn't support them.
Here's an example:
~~~lisp
(named-readtables:in-readtable :interpol-syntax)
(let ((a 42))
#?"foo: \xC4\N{Latin capital letter U with diaeresis}\nbar: ${a}")
"foo: ÄÜ
bar: 42"
~~~
CL-INTERPOL comes with a [BSD-style
license](http://www.opensource.org/licenses/bsd-license.php) so you
can basically do with it whatever you want.
Complete documentation for CL-INTERPOL can be found in the `docs`
directory or at [the project documentation
site](http://edicl.github.io/cl-interpol/).