diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-31 12:48:11 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-31 12:48:11 +0200 |
commit | 0fc2324c1cc28dd80b13d34a030576a20d887066 (patch) | |
tree | 35ac1730ce580b5d94b5ecbecec659c711715cbc /sharpsign.lisp | |
parent | c0f7fd07c3303f6928a42fe0ed41aefc8cf7fb2e (diff) |
Reader: Support #\.
Diffstat (limited to 'sharpsign.lisp')
-rw-r--r-- | sharpsign.lisp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sharpsign.lisp b/sharpsign.lisp new file mode 100644 index 0000000..93b2f4c --- /dev/null +++ b/sharpsign.lisp @@ -0,0 +1,31 @@ +;;; -*- mode: lisp; coding: utf-8 -*- +;;; Étoilisp/Mulklisp, a Common Lisp subset for the Étoilé runtime. +;;; Copyright (C) 2008 Matthias Andreas Benkard. +;;; +;;; This program 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 of the License, or (at +;;; your option) any later version. +;;; +;;; This program 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 #:common-lisp) + +(defun |#\-READER| (stream char &optional arg) + ;; FIXME: Handle #\Newline etc.. + (send-by-name stream "readChar")) + +(set-dispatch-macro-character (send-by-name (find-objc-class "MLKCharacter") + "characterWithUnichar:" + 35) + (send-by-name (find-objc-class "MLKCharacter") + "characterWithUnichar:" + 92) + (function |#\-READER|)) |