aboutsummaryrefslogtreecommitdiff
path: root/src/reader.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-20 12:39:58 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-20 12:42:18 -0700
commitd39ccc1403762b19b9966493342867b115294a2e (patch)
tree44e583ad3400a450f3a58e28516e9ae098d16e6c /src/reader.lisp
parentfac6720737e25688760621dfc0e1e5d483ef2f1f (diff)
downloadconsfigurator-d39ccc1403762b19b9966493342867b115294a2e.tar.gz
add and use :CONSFIGURATOR named readtable
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/reader.lisp')
-rw-r--r--src/reader.lisp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/reader.lisp b/src/reader.lisp
new file mode 100644
index 0000000..39314be
--- /dev/null
+++ b/src/reader.lisp
@@ -0,0 +1,23 @@
+;;; Consfigurator -- Lisp declarative configuration management system
+
+;;; Copyright (C) 2021 Sean Whitton <spwhitton@spwhitton.name>
+
+;;; This file is free software; you can redistribute it and/or modify
+;;; it under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3, or (at your option)
+;;; any later version.
+
+;;; This file is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+
+;;; You should have received a copy of the GNU General Public License
+;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+(in-package :consfigurator)
+
+(named-readtables:defreadtable :consfigurator
+ (:merge :standard)
+ (:dispatch-macro-char #\# #\? #'cl-interpol:interpol-reader)
+ (:dispatch-macro-char #\# #\> #'cl-heredoc:read-heredoc))