6 (defun read-file (&optional
(stream *standard-input
*))
7 (with-output-to-string (s)
9 do
(let ((l (read-line stream nil nil
)))
14 (defvar *quit-on-error
* t
)
16 (defun c1cc-fake-debugger (condition foo
)
17 (declare (ignore foo
))
18 (format *error-output
* "~&Error: ~A" condition
)
20 (let ((c (find-restart 'continue
)))
29 (eval-when (:load-toplevel
:execute
)
30 (let ((*debugger-hook
* #'c1cc-fake-debugger
))
33 (c1::c1-parse
(read-file)))))))
35 (defun fmain(filename)
36 (with-open-file (*standard-input
* filename
:direction
:input
)
39 (defun fparse(filename)
40 (with-open-file (*standard-input
* filename
:direction
:input
)
41 (print (c1::c1-parse
(read-file)))))