6b4bf34ff2
* reader.c (read_string): Handle '\\'. * tests/read.test: Add it.
61 lines
978 B
Scheme
Executable file
61 lines
978 B
Scheme
Executable file
#! /bin/sh
|
|
# -*-scheme-*-
|
|
# ***REMOVE THIS BLOCK COMMENT INITIALLY***
|
|
echo ' ()' | cat $0 /dev/stdin | $(dirname $0)/../scripts/mes $MES_FLAGS "$@"
|
|
#paredit:||
|
|
exit $?
|
|
!#
|
|
|
|
;; FIXME
|
|
(gc)
|
|
|
|
|
|
0
|
|
cons
|
|
(cons 0 1)
|
|
(display 0) (newline)
|
|
#t
|
|
#f
|
|
(display #t) (newline)
|
|
(display #f) (newline)
|
|
'foo
|
|
(display 'foo) (newline)
|
|
(display #x16) (newline)
|
|
(display #\A) (newline)
|
|
(display #\newline) (newline)
|
|
#\alarm
|
|
#\backspace
|
|
#\tab
|
|
#\newline
|
|
#\vtab
|
|
#\page
|
|
#\return
|
|
#\space
|
|
(display "\"")
|
|
(display "\\")
|
|
(display "\\\"\"\\")
|
|
(display 'foo)(newline)
|
|
(display '(foo))(newline)
|
|
(display '('foo))(newline)
|
|
(display (cdr '(car . cdr))) (newline)
|
|
(display "foo bar") (newline)
|
|
;;barf
|
|
#!
|
|
barf
|
|
!#
|
|
#|
|
|
burp
|
|
|#
|
|
#;(bla) (display "must see!\n")
|
|
(display `(display ,display)) (newline)
|
|
(display `(display ,@'(string port))) (newline)
|
|
(display #(0 1 2)) (newline)
|
|
(display (list '(foo
|
|
#! boo !#
|
|
;;(bb 4)
|
|
)
|
|
))
|
|
(newline)
|
|
|
|
;; TODO: syntax, unsyntax, unsyntax-splicing
|