chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/sod.sty: Hack underscores in the labels generated by `describe'.
[sod]
/
src
/
frontend.lisp
diff --git
a/src/frontend.lisp
b/src/frontend.lisp
index 9ed6f3084acb1396568e6986e1817d6d87b3473b..98652ec7e3b0deb72b36f53b2a7d82a60a49d57a 100644
(file)
--- a/
src/frontend.lisp
+++ b/
src/frontend.lisp
@@
-29,6
+29,12
@@
(cl:defpackage #:sod-frontend
(cl:in-package #:sod-frontend)
(cl:in-package #:sod-frontend)
+;;;--------------------------------------------------------------------------
+;;; Preparation for dumping.
+
+(clear-the-decks)
+(exercise)
+
;;;--------------------------------------------------------------------------
;;; The main program.
;;;--------------------------------------------------------------------------
;;; The main program.
@@
-85,7
+91,7
@@
(define-program
:usage "SOURCES..."
:options (options
(help-options :short-version #\V)
:usage "SOURCES..."
:options (options
(help-options :short-version #\V)
- "
Crazy
options"
+ "
Translator
options"
(#\I "include" (:arg "DIR")
("Search DIR for module imports.")
(list *module-dirs* 'string))
(#\I "include" (:arg "DIR")
("Search DIR for module imports.")
(list *module-dirs* 'string))
@@
-110,9
+116,6
@@
(define-program
(or builtinsp args))
(die-usage))
(or builtinsp args))
(die-usage))
- ;; Prepare the builtins.
- (make-builtin-module)
-
;; Do the main parsing job.
(multiple-value-bind (hunoz nerror nwarn)
(count-and-report-errors ()
;; Do the main parsing job.
(multiple-value-bind (hunoz nerror nwarn)
(count-and-report-errors ()
@@
-169,12
+172,10
@@
(define-program
;; If we're writing the builtin module then now seems like a
;; good time to do that.
(when builtinsp
;; If we're writing the builtin module then now seems like a
;; good time to do that.
(when builtinsp
- (clear-the-decks)
(hack-module *builtin-module*))
;; Parse and write out the remaining modules.
(dolist (arg args)
(hack-module *builtin-module*))
;; Parse and write out the remaining modules.
(dolist (arg args)
- (clear-the-decks)
(hack-module (read-module arg))))))
;; Report on how well everything worked.
(hack-module (read-module arg))))))
;; Report on how well everything worked.