Eli Barzilay
672910f27b
Lots of bad TAB eliminations.
...
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.
If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces. For example, to see
per-line authors, use "git blame -w <file>". Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Eli Barzilay
26045a27fb
#lang racket' ->
#lang racket/base' conversions in drracket and in redex.
2012-11-07 08:03:44 -05:00
Robby Findler
9377b634ff
added show-derivations to redex
2012-11-06 19:15:53 -06:00
Robby Findler
a6384e7de3
Oops, didn't mean to push this one
...
Revert "working on something to show derivations"
This reverts commit 77fb5ec69d
.
2012-11-03 15:52:14 -05:00
Robby Findler
77fb5ec69d
working on something to show derivations
2012-11-03 13:54:48 -05:00
Robby Findler
3d5178bcb0
adjust generate-term so that it has an '=' in its concrete
...
syntax when generating something from a metafunction
export redex-generator (and add docs)
rename generate-types.rkt to typing-rules-no-ellipses.rkt
2012-11-01 21:13:39 -05:00
Burke Fetscher
6be405975e
don't use disunify* to check disequations, since at this point they are fully instantiated
2012-11-01 11:52:19 -05:00
Burke Fetscher
e6ab32593e
add redex-generator form and some tests
...
update examples/generate-types
2012-11-01 11:52:19 -05:00
Robby Findler
b2b350eff5
fix typesetting of builtin non-terminals
2012-10-31 19:51:50 -05:00
Robby Findler
10a8a625fa
record the (uncompiled) domain pattern with a reduction
...
relation so that context-closure can adjust the domain
closes PR 13204
2012-10-27 20:39:04 -05:00
Robby Findler
cb566b1ba4
fix font resizing performance bug in the traces window
2012-10-24 23:56:31 -05:00
Robby Findler
06e5239441
add rule names to the derivation struct
...
change the intermediate data structures built up
while building the derivation to use their own
structs (instead of vectors)
2012-10-24 12:30:40 -05:00
Robby Findler
661f702497
attempted to clean up the derivation support
...
so that no derivation data structure creation
happens during just a normal judgment-holds,
but this was not entirely successful, so there
still is some....
Also, improved the test-util to show stacktraces
for errors (when they exist)
2012-10-23 18:31:06 -05:00
Robby Findler
7355c59fb1
added the ability to extract a derivation
...
from a judgment-form via build-derivation
(returns derivation structs)
2012-10-21 23:19:54 -05:00
Robby Findler
9696bd7337
adjust judgment-holds so it generates less code
2012-10-21 19:55:52 -05:00
Burke Fetscher
484636d92e
remove extra tut-subst.rkt and tmp.rkt files
2012-10-17 23:24:44 -05:00
Burke Fetscher
44dd4acb44
Additional random test generation capability for Redex.
...
This adds the option to generate random terms that satisfy
judgment-forms and metafunctions.
Currently functionality does not include:
- patterns/terms using: ellipses, in-hole/hole and relatives, side-conditions, unquotes
- define-relation
- redex-check integration
2012-10-17 16:30:51 -05:00
Robby Findler
751dcb4bd1
adjust define-judgment-form's typesetting so that it
...
tracks the lines of the premises in the source when
deciding how to linebreak the premises of the typeest form
2012-10-09 09:06:09 -05:00
Robby Findler
d6a8ac85b4
added some pretty-print using term formatters and fixed the
...
docs for term->pict.
closes PR 13150
2012-10-01 23:27:48 -05:00
Robby Findler
d0f981f9cb
fix a bug in color padding code
...
closes PR 13153
2012-10-01 22:53:58 -05:00
Robby Findler
9b0eb1ab78
fix redex pdf generation when a string is passed
2012-09-25 15:32:38 -05:00
Robby Findler
0e7688349e
add syntax error check when the arrow in a reduction
...
relation isn't just an identifier
add a syntax error check when an identifier appears
under two different ellipses depths in the same pattern
2012-09-20 07:09:17 -05:00
Robby Findler
b8acee5655
small cleanup
2012-09-12 15:41:37 -05:00
Robby Findler
605e1b8c89
adjust redex so that identifiers preserve their syntax-original ness
2012-08-24 09:47:18 -05:00
Robby Findler
40e5b63bbc
allow identifiers as names, not just strings
2012-08-09 15:28:42 -05:00
Robby Findler
97e3f56bf2
adjust bitmap tests to test judgment form labels (and fix expected result under mac os x)
2012-08-08 22:05:43 -05:00
Robby Findler
0369342bfe
added names to clauses in define-judgment-form and added
...
judgment-form-cases to use the names to control typesetting
2012-08-08 21:34:28 -05:00
Burke Fetscher
29661cc675
add #:lang keyword to term, which checks that underscored symbols agree with patterns in the provided language...changed most internal uses of term to use this form
2012-08-08 11:09:01 -05: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
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
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
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
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