Commit Graph

627 Commits

Author SHA1 Message Date
Eli Barzilay
4c2940a6d9 Simplify away uses of "-t" in `drdr:command-line'.
In some cases use `module+' to make the code run nicely without a "-m".

(And some other minor tweaks.)
2012-06-19 12:52:22 -04:00
Robby Findler
81cbb10213 fix docs for render-term
closes PR 12834
2012-06-09 07:12:15 -05:00
Robby Findler
752f240c6a Revert "Test results from DrDr"
This reverts commit fc8cb6e37d.

Jay changed the set of installed font packages on DrDr to match the
ones on my linux VM which brought the test results back in sync again,
so we don't need these revised bitmaps anymore.

Thanks, Jay!
2012-06-02 10:12:11 -05:00
Jay McCarthy
fc8cb6e37d Test results from DrDr 2012-06-01 17:33:13 -06:00
Robby Findler
d17f93db30 add PLTJUSTSAVEFAILURES support; makes it easier to build a good
set of bitmaps on others' machines (no clicking required)
2012-05-31 23:27:02 -05:00
Robby Findler
b7b566aefc adjust redex error message tests to match singular/plural fixes in
the error raising code, except in one place where I think the
error raising code was correct to have the plural form, so I changed
it back instead of changing the Redex test suite to match
2012-05-31 10:56:14 -05:00
Robby Findler
3aa300c2d9 update the mac os x bitmaps for the redex bitmap test suite
(just like the recent commit that updates the unix versions)
2012-05-18 10:43:52 -05:00
Robby Findler
67c48d6d78 Commit b3002cfab0 broke
the redex bitmap test cases (in a good way!). Hopefully
this fixes them and makes DrDr happy again
2012-05-18 09:01:38 -05:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Matthew Flatt
0dbd3f1610 redex typesetting: make token splitter more tolerant
Possibily the typesetting enginer should reject an ill-formed
input, instead; I'm not sure what went wrong with the input.
2012-05-04 10:20:24 -06:00
Asumu Takikawa
0b90dc49cf Fix docs for render-term. 2012-04-19 17:37:12 -04:00
Robby Findler
676f744c1d add 'match-pattern?' 2012-03-27 12:21:17 -05:00
Jay McCarthy
99f1cc44df redex-match violates its documented contract
This patch fixes the problem that the hole matcher may return an empty
list rather than a #f that gets sent to the caller of redex-match. I
re-ran the Redex tests and found no violations. However, I am not
confident that there isn't a more correct place to put this '() -> #f
replacement.

I will be immediately forwarding this push email to Robby to have him
check it.
2012-03-23 06:39:14 -06:00
Robby Findler
9d43203990 adjusted the render-* functions so they produce .pdf if the given
filename ends with #rx#"[.]pdf".
2012-03-17 08:36:34 -05:00
Robby Findler
ac99b732fa fix missing #:eval in redex tutorial 2012-03-13 16:44:38 -05:00
Eli Barzilay
43ef402274 Don't compile test files.
(Didn't touch the tiny "test-docs-complete" tests.)
2012-03-13 10:29:13 -04:00
Robby Findler
ac568d7b3f try using make-bitmap for the bitmaps under unix to see if drdr
likes that better
2012-03-05 13:48:34 -06:00
Robby Findler
519550d291 save a new set of unix bitmaps for the redex bitmap test
and (optimistically) turn the bitmap tests back in on in drdr

(also improve the GUI a little bit that shows the errors in
the test)
2012-03-05 11:44:45 -06:00
Robby Findler
3997eaefde clean up redex bitmap tests (under mac os x) 2012-03-05 08:52:17 -06:00
Robby Findler
4a304643d3 Rackety 2012-03-05 08:12:02 -06:00
Robby Findler
b7caf411ae added define-extended-judgment-form to Redex 2012-03-03 16:41:53 -06:00
Robby Findler
a0bb0430f2 separated the define-judgment-form implementation (and bind-withs)
into its own file
2012-03-03 16:41:52 -06:00
Robby Findler
a23f6dbca2 move the redex scrbl files into a scribblings subcollection and adjust timeouts 2012-02-29 07:13:36 -06:00
Eli Barzilay
f7c67b49a4 Big newline at EOF scan. 2012-02-29 00:28:11 -05:00
Robby Findler
c5193f7da7 fix a bug in define-union-language
(this bug was somehow already covered by the existing test suites
 and also make pretty much every define-union-language break)
2012-02-27 10:00:23 -06:00
Robby Findler
1945ff2709 add make-platform-bitmap
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)

closes PR 12554
2012-02-21 16:19:45 -06:00
Eli Barzilay
c007c345f9 A bunch of more typos like the ones in David's commit. 2012-02-21 14:21:43 -05:00
Robby Findler
df5e7efd5e Made an editing pass over the redex tutorial 2012-02-15 08:29:22 -06:00
Robby Findler
e4e4d70b6b added define-union-language 2012-02-10 17:10:47 -06:00
Robby Findler
122625960d adjust runtime errortraces in redex to manipulate namespaces a little more carefully 2012-02-10 17:10:47 -06:00
Robby Findler
6914c5667c adjust test suite to match new lack-of-absolute-paths feature 2012-02-10 17:10:47 -06:00
Robby Findler
b93ff24fee add two links to redex docs 2012-02-10 17:10:47 -06:00
Robby Findler
b3a9ae9ba2 change the font in the pink highlighting to avoid some
bad drawing behavior on the mac (that shows up in the
amb tutorial)
2012-02-08 16:23:13 -06:00
Robby Findler
55b3d99d78 adjust beaucoup places in redex where the source was being
included in the compiled files. (also, misc minor cleanups
notably a new exercise in tut.scrbl)

closes PR 12547 --- there are still a few uses left, but they do not
seem to be coming from Redex proper:

 - /Users/robby/git/plt/collects/racket/private/map.rkt still appears
   in a bunch of places (there is a separate PR for that I believe),
   and

 - /Users/robby/git/plt/collects/redex/../private/reduction-semantics.rkt
   appears in tl-test.rkt, but I do not see how it
   is coming in via Redex code, so hopefully one of the other
   PRs that Eli submitted is the real cause. If not, I'll revisit later
2012-02-08 09:59:44 -06:00
Robby Findler
4bac243efe put an expression to evaluate to find the path instead of the path
that was there when the html file was built.

closes PR 12545 (I do not agree with Eli's proposal for fixing this so I
did it differently)
2012-02-07 16:14:09 -06:00
Robby Findler
2ca0473f1c shrink longest line down to something more reasonable 2012-02-07 15:50:53 -06:00
Robby Findler
811a9227c3 Rackety 2012-02-07 15:50:52 -06:00
Robby Findler
794240bf67 added a amb-based redex tutorial 2012-02-05 17:24:13 -06:00
Robby Findler
8bec634dcd adjust covered-cases so that it always returns deterministically
(sorting by the strings in the result)
2012-02-05 17:24:13 -06:00
Robby Findler
977659a118 fix redex's syntax pruning to not drop the #%top binding 2012-02-01 20:09:29 -06:00
Robby Findler
7cf563c4d9 fix some typos in a comment 2012-01-24 08:29:09 -06:00
Robby Findler
71595a55e6 adjust the names of the dot/neato binaries to be platform-specific 2012-01-17 12:42:42 -06:00
Robby Findler
b068d9583c Remove accidentally pushed commits
For the curious, this was an attempt to change the way context
matching works.  Currently, when matching a pattern, if 'hole' is
encountered, the match succeeds and the result just includes the term
at that point. This means that when matching (in-hole p1 p2), p1
generally returns multiple results and then those results are thinned
out by matching p2 against the thing actually at the hole.

Instead, one could pass along the function that does the matching and
then, when matching a hole pattern, it could decide right at that
point whether or not the match works.

This seems like it would be a win overall, but it interferes with
caching. Specifically, most reduction systems have lots of rules
that all begin

  (--> (in-hole E ...) ...)

and, in the strategy first described above, that matching can be cached.

But in the second, it cannot. Overall, this turns out to be a slight
lose in the current version of Redex. Maybe if other things change, however,
this tradeoff will change.

Revert "IN PROGRESS: more context speedup attempt"

This reverts commit 0134b8753d.

Revert "IN PROGRESS: a possible speed up attempt; match the thing in the hole before returning the context matches instead of afterwards"

This reverts commit 11059e2b5c.
2012-01-15 21:02:48 -06:00
Robby Findler
262931bb80 adjust typesetting so the ellipsis uses the default style, not
literal-style (unless an atomic-rewriter is in place)
2012-01-14 21:32:16 -06:00
Robby Findler
b3c450ffc9 add 'side-condition' to define-judgment-form (it does not have an implicit
unquote like the other side-condition's do, but it is still useful
for typesetting purposes)
2012-01-14 14:52:07 -06:00
Robby Findler
0134b8753d IN PROGRESS: more context speedup attempt 2012-01-11 13:16:47 -06:00
Robby Findler
11059e2b5c IN PROGRESS: a possible speed up attempt; match the thing in the hole before returning the context matches instead of afterwards 2012-01-11 13:16:46 -06:00
Robby Findler
f1a7864c63 fix bug in lw struct generation 2012-01-09 20:38:51 -06:00
Robby Findler
6cacd57ebc add check-redundancy, a parameter that causes redex to print some
debugging information about ambiguous matching (when the ambiguity
matters)
2012-01-09 12:57:24 -06:00
Robby Findler
a12df9cea6 redex: misc cleanups:
- remove cache instrumentation code
 - make hole->not-hole parsimonous
 - change the cache size back to 63
2012-01-09 12:57:23 -06:00