svn: r11269
This commit is contained in:
parent
448b47a953
commit
e0edc70215
|
@ -3,6 +3,9 @@ v4.2
|
||||||
- added white-bracket-sizing to control how the brackets
|
- added white-bracket-sizing to control how the brackets
|
||||||
are typeset when rendering a metafunction.
|
are typeset when rendering a metafunction.
|
||||||
|
|
||||||
|
- added render-* functions that make it easier to experiment
|
||||||
|
with typesetting at the REPL.
|
||||||
|
|
||||||
v4.1 (this is the first version that was included in the PLT
|
v4.1 (this is the first version that was included in the PLT
|
||||||
distribution. Before this, Redex was in PLaneT).
|
distribution. Before this, Redex was in PLaneT).
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,9 @@
|
||||||
(->d ([rel reduction-relation?])
|
(->d ([rel reduction-relation?])
|
||||||
([file (or/c false/c path-string?)]
|
([file (or/c false/c path-string?)]
|
||||||
#:style [style reduction-rule-style/c])
|
#:style [style reduction-rule-style/c])
|
||||||
[result (lambda (x)
|
[result (if (path-string? file)
|
||||||
(if (path-string? file)
|
void?
|
||||||
(void? x)
|
pict?)])]
|
||||||
(pict? x)))])]
|
|
||||||
[reduction-relation->pict (->* (reduction-relation?)
|
[reduction-relation->pict (->* (reduction-relation?)
|
||||||
(#:style reduction-rule-style/c)
|
(#:style reduction-rule-style/c)
|
||||||
pict?)]
|
pict?)]
|
||||||
|
@ -37,10 +36,9 @@
|
||||||
(->d ([lang compiled-lang?])
|
(->d ([lang compiled-lang?])
|
||||||
([file (or/c false/c path-string?)]
|
([file (or/c false/c path-string?)]
|
||||||
#:nts [nts (or/c false/c (listof (or/c string? symbol?)))])
|
#:nts [nts (or/c false/c (listof (or/c string? symbol?)))])
|
||||||
[result (lambda (x)
|
[result (if (path-string? file)
|
||||||
(if (path-string? file)
|
void?
|
||||||
(void? x)
|
pict?)])])
|
||||||
(pict? x)))])])
|
|
||||||
|
|
||||||
; syntax
|
; syntax
|
||||||
(provide metafunction->pict
|
(provide metafunction->pict
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(module bitmap-test mzscheme
|
#lang scheme
|
||||||
(require "bitmap-test-util.ss"
|
(require "bitmap-test-util.ss"
|
||||||
"../main.ss")
|
"../main.ss")
|
||||||
|
|
||||||
|
@ -12,8 +12,11 @@
|
||||||
number)
|
number)
|
||||||
(v number (λ (x) e))
|
(v number (λ (x) e))
|
||||||
((x y) variable-not-otherwise-mentioned))
|
((x y) variable-not-otherwise-mentioned))
|
||||||
|
|
||||||
(test (render-language lang) "language.png")
|
(test (render-language lang) "language.png")
|
||||||
|
|
||||||
|
(test (render-language lang #:nts '(e v)) "language-nox.png")
|
||||||
|
|
||||||
(define-extended-language lang++ lang
|
(define-extended-language lang++ lang
|
||||||
(e .... number (+ e e))
|
(e .... number (+ e e))
|
||||||
(v .... number))
|
(v .... number))
|
||||||
|
@ -47,4 +50,4 @@
|
||||||
"lw.png")
|
"lw.png")
|
||||||
|
|
||||||
(printf "bitmap-test.ss: ")
|
(printf "bitmap-test.ss: ")
|
||||||
(done))
|
(done)
|
||||||
|
|
BIN
collects/redex/private/bmps/language-nox.png
Normal file
BIN
collects/redex/private/bmps/language-nox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
|
@ -1191,9 +1191,8 @@ are otherwise setting @scheme[dc-for-text-size]. }
|
||||||
Produce a pict like @scheme[render-language], but without
|
Produce a pict like @scheme[render-language], but without
|
||||||
adjust @scheme[dc-for-text-size].
|
adjust @scheme[dc-for-text-size].
|
||||||
|
|
||||||
This function is
|
This function is primarily designed to be used with
|
||||||
primarily designed to be used with Slideshow or with
|
Slideshow or with other tools that combine picts together.
|
||||||
other tools that combine picts together.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[(render-reduction-relation [rel reduction-relation?]
|
@defproc[(render-reduction-relation [rel reduction-relation?]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user