macro stepper: fixed documentation build
(removed dependence on mred-kernel) svn: r13152 original commit: b75dfb878ae38a75bd54ce9d208f1f86d5ba26b1
This commit is contained in:
parent
382ddec6f8
commit
9f94e134e3
|
@ -1,9 +1,33 @@
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
(require scheme/class
|
(require scheme/class
|
||||||
macro-debugger/util/class-iop
|
macro-debugger/util/class-iop
|
||||||
"../util/notify.ss")
|
(for-syntax scheme/base))
|
||||||
(provide (all-defined-out))
|
(provide (all-defined-out))
|
||||||
|
|
||||||
|
;; Helpers
|
||||||
|
|
||||||
|
(define-for-syntax (join . args)
|
||||||
|
(define (->string x)
|
||||||
|
(cond [(string? x) x]
|
||||||
|
[(symbol? x) (symbol->string x)]
|
||||||
|
[(identifier? x) (symbol->string (syntax-e x))]
|
||||||
|
[else (error '->string)]))
|
||||||
|
(string->symbol (apply string-append (map ->string args))))
|
||||||
|
|
||||||
|
;; not in notify.ss because notify depends on scheme/gui
|
||||||
|
(define-interface-expander methods:notify
|
||||||
|
(lambda (stx)
|
||||||
|
(syntax-case stx ()
|
||||||
|
[(_ name ...)
|
||||||
|
(apply append
|
||||||
|
(for/list ([name (syntax->list #'(name ...))])
|
||||||
|
(list ;; (join "init-" #'name)
|
||||||
|
(join "get-" name)
|
||||||
|
(join "set-" name)
|
||||||
|
(join "listen-" name))))])))
|
||||||
|
|
||||||
|
;; Interfaces
|
||||||
|
|
||||||
;; config<%>
|
;; config<%>
|
||||||
(define-interface config<%> ()
|
(define-interface config<%> ()
|
||||||
((methods:notify suffix-option
|
((methods:notify suffix-option
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
|
|
||||||
#lang scheme/base
|
#lang scheme/base
|
||||||
(require macro-debugger/util/class-iop
|
(require macro-debugger/util/class-iop
|
||||||
"../util/notify.ss"
|
|
||||||
(prefix-in sb: "../syntax-browser/interfaces.ss"))
|
(prefix-in sb: "../syntax-browser/interfaces.ss"))
|
||||||
(provide (all-defined-out))
|
(provide (all-defined-out))
|
||||||
|
|
||||||
(define-interface config<%> (sb:config<%>)
|
(define-interface config<%> (sb:config<%>)
|
||||||
((methods:notify macro-hiding-mode
|
((sb:methods:notify macro-hiding-mode
|
||||||
show-hiding-panel?
|
show-hiding-panel?
|
||||||
identifier=?
|
identifier=?
|
||||||
highlight-foci?
|
highlight-foci?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user