File: sendmacr.lsp

package info (click to toggle)
xlispstat 3.52.14-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,560 kB
  • ctags: 12,676
  • sloc: ansic: 91,357; lisp: 21,759; sh: 1,525; makefile: 521; csh: 1
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(setf (aref *readtable* (char-int #\[))
      (cons :tmacro
	    (lambda (f c &aux ex)
		    (do () 
			((eq (peek-char t f) #\]))
			(setf ex (append ex (list (read f)))))
		    (read-char f)
		    (cons (cons 'send ex) nil))))

(setf (aref *readtable* (char-int #\]))
      (cons :tmacro
	    (lambda (f c)
		    (error "misplaced right bracket"))))