Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created May 11, 2012 22:35
Show Gist options
  • Save jbclements/2662849 to your computer and use it in GitHub Desktop.
Save jbclements/2662849 to your computer and use it in GitHub Desktop.
Excerpt from racket collects/drracket/private/tools.rkt
;
;
; ;; ; ;;;
; ; ;;; ;;; ; ;
; ; ; ; ; ; ;
; ; ;;; ; ;; ;;;; ;;; ;;; ; ; ; ;
; ; ; ;; ; ; ; ; ; ; ; ; ; ;
; ; ; ; ; ;;;; ;;; ;;;;; ; ;;; ; ;
; ; ; ; ; ; ; ; ; ; ; ; ;
; ; ; ; ; ; ; ; ; ; ; ; ; ;; ; ;
; ;;;; ;;; ;;; ;;; ; ;;; ;;; ;;;;; ;;; ; ;;;;;
; ;
; ;
; ;;;
;
;; run-phases : -> void
(define (run-phases phase1-extras phase2-extras)
(drracket:module-language-tools:no-more-online-expansion-handlers)
(let* ([after-phase1 (run-one-phase 'phase1
(string-constant tool-error-phase1)
successfully-loaded-tool-phase1
successfully-loaded-tools
phase1-extras)]
[after-phase2 (run-one-phase 'phase2
(string-constant tool-error-phase2)
successfully-loaded-tool-phase2
after-phase1
phase2-extras)])
(set! current-phase 'init-complete)
(set! successful-tools
(map (lambda (x) (make-successful-tool
(successfully-loaded-tool-spec x)
(successfully-loaded-tool-bitmap x)
(successfully-loaded-tool-name x)
(successfully-loaded-tool-url x)))
after-phase2))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment