Matthew Flatt
52acc7cbfb
Redex rendering adjustments, including new metafunction styles
...
svn: r15322
2009-06-28 16:15:23 +00:00
Robby Findler
ea6c99c69f
accidentally committed some changes on the branch, now moving back to trunk (w/ some conflicts, argh!): fixed a bug in the way redex expanded metafunctions (it had old code left in there) and improved error messages for domain failures in reduction relations
...
svn: r15317
2009-06-27 13:47:02 +00:00
Robby Findler
9b4f4d5be9
PR 10124
...
svn: r15311
2009-06-26 20:43:53 +00:00
Robby Findler
a895b5ef10
PR 10062
...
svn: r15310
2009-06-26 20:34:28 +00:00
Robby Findler
d007777e2a
fixed a bug in the way quote was handled
...
svn: r15308
2009-06-26 19:22:03 +00:00
Robby Findler
e81b1822a6
added metafunction-cases and fixed a layout bug
...
svn: r15299
2009-06-26 16:30:41 +00:00
Robby Findler
7804143400
merge from branch branches/robby/redex-pat2; improved where patterns and a few bug fixes
...
svn: r15294
2009-06-26 01:19:45 +00:00
Robby Findler
f9ba83cc1c
brought back syntax locations (for better error messages) in redex main forms and improved define-relation
...
svn: r15214
2009-06-19 14:58:40 +00:00
Robby Findler
ddc5d91e24
added a first attempt at define-relation
...
svn: r15171
2009-06-14 17:22:17 +00:00
Robby Findler
48f9e89978
prunes out the identifier bindings and source locations from the output of the top-level macros
...
svn: r15144
2009-06-11 14:04:48 +00:00
Robby Findler
1450b89b75
improved handling of source locations
...
svn: r15132
2009-06-10 19:30:36 +00:00
Eli Barzilay
4288c6c2c7
The Scribble reader was improved to make it pull out the syntax
...
punctuations outside of the form, as it does with quote punctuations.
So things like this
#, @foo{...}
that required the space to make the @foo read as a scribble form are
now better written as
@#,foo{...}
This changes all such occurrences. (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)
svn: r15111
2009-06-07 10:12:32 +00:00
Robby Findler
90a0a6e524
PR 10275
...
svn: r15108
2009-06-07 01:18:56 +00:00
Robby Findler
74cb273fb7
PR 10278
...
svn: r15097
2009-06-05 19:51:06 +00:00
Robby Findler
cf5b14f626
svn: r14960
2009-05-23 15:10:55 +00:00
Robby Findler
b087ce2765
fixed a bug in metafunctions
...
svn: r14932
2009-05-22 19:19:40 +00:00
Robby Findler
0500571383
PR 10244
...
svn: r14874
2009-05-19 20:58:46 +00:00
Matthew Flatt
0f1fc2d664
redex doc corrections
...
svn: r14789
2009-05-12 21:30:28 +00:00
Robby Findler
0c0aa26e6f
PR 10231
...
svn: r14769
2009-05-10 21:59:13 +00:00
Casey Klein
039d24fc17
`where' clauses now properly bind in metafunctions
...
svn: r14712
2009-05-04 13:59:42 +00:00
Robby Findler
7315ff502b
fixed label ordering for reductions when extracted via reduction-relation->rule names
...
svn: r14690
2009-05-02 16:18:12 +00:00
Robby Findler
ea1ace6022
added horizontal-left-align style
...
svn: r14687
2009-05-02 12:32:04 +00:00
Robby Findler
55a98bf037
fixed a bug with holes used in certain places in patterns
...
svn: r14684
2009-05-02 00:57:18 +00:00
Eli Barzilay
ff73a5395e
removed lots of "the the"s
...
svn: r14679
2009-05-01 21:02:51 +00:00
Robby Findler
a3768d00eb
none of the various render-* worked under linux, due to a platform-specific default in the way ps-setup works.
...
svn: r14678
2009-05-01 20:38:26 +00:00
Robby Findler
a42ba6075b
added better linking for the 'lw' struct
...
svn: r14641
2009-04-28 15:22:32 +00:00
Robby Findler
7d881a32bf
svn: r14588
2009-04-23 14:57:51 +00:00
John Clements
7334a89d6b
undid accidental change to church.ss
...
svn: r14557
2009-04-19 01:33:29 +00:00
John Clements
ea861e346f
fixed typo in docs of fresh form
...
svn: r14556
2009-04-19 00:45:02 +00:00
Casey Klein
2c8c8638ac
Barebones interface for overriding default generators.
...
svn: r14519
2009-04-15 14:09:35 +00:00
Eli Barzilay
c0a8a01222
Changed @itemize{...} to @itemize[...] (done after comparing the doc
...
tree and verifying that there are no changes).
(Also fixed a few bugs that were in the code)
svn: r14427
2009-04-05 17:46:20 +00:00
Casey Klein
e9cf5787c1
Fixed bugs related to `cross' patterns.
...
svn: r14414
2009-04-03 10:47:42 +00:00
Eli Barzilay
23a26f320c
disable set-flip-labels?
...
svn: r14387
2009-03-31 14:55:12 +00:00
Matthias Felleisen
9c90204ca4
svn: r14329
2009-03-28 16:18:30 +00:00
Casey Klein
72c3ed943e
Removed support for the #:binds annotation.
...
svn: r14319
2009-03-27 17:38:16 +00:00
Casey Klein
c39e5dfa38
Changed the output of Redex's check forms.
...
svn: r14307
2009-03-27 00:26:11 +00:00
Eli Barzilay
2e66794799
removed unused binding
...
svn: r14209
2009-03-22 02:50:25 +00:00
Casey Klein
289b200057
Fixed bug in parse-language.
...
svn: r14155
2009-03-17 18:21:11 +00:00
Robby Findler
46277c7fd3
svn: r14045
2009-03-11 01:50:14 +00:00
Robby Findler
fe618071dc
added a test--> that only does a single step of the reduction relation
...
svn: r14014
2009-03-08 21:07:01 +00:00
Robby Findler
338a171a6a
renamed test--> to test-->>
...
svn: r14012
2009-03-08 20:29:31 +00:00
Robby Findler
d07a335324
svn: r14003
2009-03-07 13:53:54 +00:00
Robby Findler
37cde560a9
fixed bug in the cycle detection code in test-->
...
svn: r14002
2009-03-07 13:38:41 +00:00
Matthew Flatt
1c58224202
redex doc typesetting repairs
...
svn: r13970
2009-03-05 17:33:34 +00:00
Robby Findler
c063b4305c
PR 10115
...
svn: r13969
2009-03-05 13:29:25 +00:00
Robby Findler
b165d83c73
changed test--> so that it requires a keyword if there are cycles
...
svn: r13964
2009-03-05 02:36:34 +00:00
Casey Klein
c4524ef9ae
Generator support for natural',
integer', and `real' patterns.
...
svn: r13961
2009-03-04 21:13:57 +00:00
Casey Klein
b948caaa92
Added natural',
integer', and `real' patterns to Redex.
...
svn: r13957
2009-03-04 20:12:36 +00:00
Robby Findler
e8a47051f7
improved redex's expansion to work better with check syntax (and noted a few other recent changes in the HISTORY.txt file)
...
svn: r13944
2009-03-04 12:59:26 +00:00
Robby Findler
9297ffa2a3
added specification for the main arrow to redex
...
svn: r13924
2009-03-03 20:50:15 +00:00
Robby Findler
8704fe05b2
added optionaldomain specifications to reduction-relations
...
svn: r13913
2009-03-03 16:27:09 +00:00
Robby Findler
995b336f08
errors raised while reducing are now more gracefully handled
...
svn: r13911
2009-03-03 15:31:54 +00:00
Robby Findler
4c02e3736d
svn: r13814
2009-02-24 16:17:35 +00:00
Robby Findler
414e3b796e
svn: r13813
2009-02-24 16:17:11 +00:00
Robby Findler
b6e60bdd6e
fixed a bug in the way recursive metafunctions bound the recursive calls for use in 'where' clauses
...
svn: r13809
2009-02-24 01:36:48 +00:00
Stevie Strickland
d23bdbbfaf
Fix the RHSes of term-lets not being treated as unquoted when converted to lws.
...
svn: r13762
2009-02-21 03:33:33 +00:00
Stevie Strickland
560836a804
Draw :-> and :--> ourselves, similar to --> and friends.
...
svn: r13698
2009-02-17 16:14:12 +00:00
Matthew Flatt
941a8935aa
remove unneeded dependency of framework on parts of Scribble; Redex doc repairs; add #:style? argument to deftech
...
svn: r13696
2009-02-17 15:22:55 +00:00
Stevie Strickland
e0e6fcb465
Add unicode longmapsto.
...
svn: r13695
2009-02-17 15:02:07 +00:00
Sam Tobin-Hochstadt
72e118d92f
Remove eta expansion, match is now fixed.
...
svn: r13622
2009-02-15 21:59:55 +00:00
Robby Findler
c13c867695
svn: r13547
2009-02-13 17:25:30 +00:00
Robby Findler
3ee1a899ee
changed apply-reduction-relation* so that it notices cycles and ignores them
...
svn: r13519
2009-02-11 20:25:32 +00:00
Casey Klein
7bcf4e69a5
Forgot default value for #:retries in check-reduction-relation.
...
svn: r13485
2009-02-07 13:43:15 +00:00
Casey Klein
6d5f966019
Added a #retries keyword to the forms that generate random terms.
...
svn: r13484
2009-02-07 13:26:37 +00:00
Robby Findler
12560f3a23
fixed a bug reported by Zane and Ahmed via Matthias
...
svn: r13483
2009-02-07 13:09:11 +00:00
Casey Klein
fba31b310a
Improved the error reported when the term generate is unable to
...
satisfy a pattern.
svn: r13464
2009-02-06 12:04:40 +00:00
Stevie Strickland
7ef5770e51
file -> filename
...
svn: r13461
2009-02-06 02:33:57 +00:00
Robby Findler
4de2439506
added the ability to render multiple metafunctions together to make all the lhss line up in a single column
...
svn: r13459
2009-02-06 02:18:08 +00:00
Stevie Strickland
facfa48e80
Fix metafunctions so that the LHSes are rewritten also.
...
svn: r13457
2009-02-05 22:02:14 +00:00
Robby Findler
d422d48c37
svn: r13453
2009-02-05 14:21:07 +00:00
Robby Findler
e35e25408f
some more overlap fixes
...
svn: r13452
2009-02-05 14:08:45 +00:00
Robby Findler
c859eba9ac
svn: r13451
2009-02-05 13:27:02 +00:00
Robby Findler
7e48db0a82
PR 10042 (plus some fixes to earlier Stevie-submitted PRs that werent quite right)
...
svn: r13447
2009-02-05 01:42:00 +00:00
Robby Findler
4f2070831b
PR 10042
...
svn: r13444
2009-02-05 01:14:37 +00:00
Robby Findler
7eaef08d63
fixed PR 10041
...
svn: r13442
2009-02-05 00:23:47 +00:00
Robby Findler
a5ca75f7b3
PR 10040
...
svn: r13423
2009-02-04 19:58:25 +00:00
Casey Klein
8f03dea7c3
The term generator now increases the size bound and attempt number
...
when it is having trouble satisfying a pattern.
svn: r13422
2009-02-04 19:52:35 +00:00
Robby Findler
4c22de3cf5
oops
...
svn: r13415
2009-02-04 16:00:47 +00:00
Robby Findler
fbe518937c
refactoring continues
...
svn: r13414
2009-02-04 15:50:24 +00:00
Stevie Strickland
d293f628d0
Fix mzscheme-isms.
...
svn: r13410
2009-02-04 07:12:27 +00:00
Robby Findler
825bc29d1e
some refactoring of typesetting code, plus moving a bunch of files away from mzscheme to scheme/base
...
svn: r13404
2009-02-04 02:58:29 +00:00
Robby Findler
9bbed05671
fixes from Jed Davis
...
svn: r13388
2009-02-03 19:25:08 +00:00
Robby Findler
370535a84b
fixed plural
...
svn: r13314
2009-01-29 15:58:03 +00:00
Robby Findler
798c5ee12f
changed default-check-attempts and changed output when an exception is raised
...
svn: r13313
2009-01-29 15:43:24 +00:00
Casey Klein
b86e4473f0
Changed redex-check's #:source keyword to always generate from the
...
LHSs of the metafunction/relation.
svn: r13310
2009-01-29 00:41:30 +00:00
Robby Findler
04d54e65ab
svn: r13305
2009-01-28 19:55:23 +00:00
Casey Klein
6afb62f510
Fixed a bug in find-base-cases.
...
svn: r13303
2009-01-28 16:30:22 +00:00
Stevie Strickland
06c189a726
Fix error when rendering to a file.
...
svn: r13290
2009-01-27 13:39:14 +00:00
Robby Findler
ebad17e4f7
svn: r13257
2009-01-22 15:06:31 +00:00
Robby Findler
49f015d55b
avoid duplicating some compiled patterns in the generated code
...
svn: r13254
2009-01-22 02:03:37 +00:00
Robby Findler
70d25c8f0c
a partial attempt to fix PR 10004
...
svn: r13252
2009-01-21 19:24:24 +00:00
Robby Findler
395d977832
moving to the other computer
...
svn: r13249
2009-01-21 16:06:27 +00:00
Robby Findler
5d7429c25e
added yet one more hook to traces/ps
...
svn: r13236
2009-01-20 15:31:02 +00:00
Robby Findler
af810c8a6f
added support for special-case drawing of individual edges to the graph library and support to be able to use that to redex
...
svn: r13226
2009-01-19 18:02:33 +00:00
Robby Findler
c4630e4526
extended initial-char-width
...
svn: r13221
2009-01-19 15:15:12 +00:00
Robby Findler
c95f144971
moved to plt/docs/release-notes
...
svn: r13207
2009-01-18 23:19:28 +00:00
Robby Findler
e7f8cce469
added another capability to redex's traces function
...
svn: r13195
2009-01-17 23:36:33 +00:00
Casey Klein
220380fd1b
Fixed a bug in which the "check" forms failed to reinitialize the
...
"preferred productions" before each attempt.
svn: r13172
2009-01-16 17:09:51 +00:00
Robby Findler
a4799be53c
added support for customizing the edge label font to the graph library and propogated that argument to the redex traces and traces/ps functions
...
svn: r13155
2009-01-15 21:29:26 +00:00
Matthew Flatt
cf2e98eb92
size-cache-invalid for editor<%>
...
svn: r13120
2009-01-14 20:29:37 +00:00
Robby Findler
074be235b4
fixed a bug
...
svn: r13119
2009-01-14 19:26:03 +00:00
Robby Findler
8f3547e311
added code to remove the graph-pb from the canvas while printing
...
svn: r13117
2009-01-14 18:21:55 +00:00
Robby Findler
ae1e6ca263
fixed an x/y reversal bug and improved the #:layout function so it isn't called as much
...
svn: r13116
2009-01-14 18:05:21 +00:00
Robby Findler
d1f65ae6c9
fixed a bunch of bugs in layout things in order to make traces/ps work better
...
svn: r13114
2009-01-14 15:53:29 +00:00
Casey Klein
286ef262c7
Fixed contract for `check-reduction-relation'
...
svn: r13112
2009-01-14 14:09:13 +00:00
Eli Barzilay
d1a0086471
newlines at EOFs
...
svn: r13105
2009-01-14 03:10:47 +00:00
Robby Findler
c5d99507c3
PR 10024
...
svn: r13100
2009-01-14 01:39:32 +00:00
Casey Klein
5ca04f3497
Randomized testing forms no longer report exceptions as
...
counterexamples or return #t when unable to find a counterexample.
svn: r13094
2009-01-13 20:50:36 +00:00
Casey Klein
d7d93250f3
Added examples to `redex-check' documentation.
...
svn: r13081
2009-01-12 22:50:09 +00:00
Casey Klein
0e8cf2e160
Updated docs to reflect that check' is provided as
redex-check'.
...
svn: r13074
2009-01-12 20:53:58 +00:00
Robby Findler
3ceb88b8a7
fixed a bug intraces/ps
...
svn: r13062
2009-01-10 23:49:03 +00:00
Robby Findler
538a1e695e
svn: r13061
2009-01-10 23:21:46 +00:00
Robby Findler
e34badc4cf
fixed some typos:
...
svn: r13059
2009-01-10 23:12:52 +00:00
Robby Findler
3a3ceb121b
added traces/ps and some code to make automatic layout of the graph possible (see #:layout in the docs for traces)
...
svn: r13058
2009-01-10 18:17:45 +00:00
Casey Klein
65fad6047d
Exported and documented the term generator's public interface.
...
svn: r13053
2009-01-09 21:53:53 +00:00
Casey Klein
3f44589c69
Changed the interface for collecting reduction relation coverage.
...
svn: r13046
2009-01-09 10:23:14 +00:00
Casey Klein
df5e59561f
1. Reorganized so that generating an `any' doesn't require
...
reprocessing the language definition.
2. Turned optional arguments to check-metafunction, generate-term,
etc. into keywords.
3. Added #:source keyword to `check' form.
svn: r13035
2009-01-08 14:46:46 +00:00
Robby Findler
05160bf931
PR 10009 and added tracing to metafunctions
...
svn: r13028
2009-01-07 15:55:21 +00:00
Robby Findler
a5b53c63fc
added a parameter to disable the various caches in redex
...
svn: r13024
2009-01-07 00:54:48 +00:00
Casey Klein
104447edf6
Support for collecing per-case test coverage of reduction relations.
...
svn: r13013
2009-01-05 14:26:04 +00:00
Robby Findler
206553c816
added clarification to the docs about caching
...
svn: r13003
2009-01-04 18:10:32 +00:00
Robby Findler
9b84def3c1
PR 10002
...
svn: r13002
2009-01-04 18:08:37 +00:00
Casey Klein
7da5ee6029
Fixed check-reduction-relation's handling of cases with `where' and
...
`side-condition' clauses.
svn: r12995
2009-01-03 20:48:19 +00:00
Casey Klein
f402605fed
Added check-metafunction and check-reduction-relation. Fixed bug in
...
generation of `any' pattern.
svn: r12974
2009-01-02 20:18:53 +00:00
Robby Findler
459a3247e7
clarified term-match vs term-let a little bit
...
svn: r12957
2008-12-31 02:19:30 +00:00
Eli Barzilay
eaa896f3fa
set svn:eol-style
...
svn: r12728
2008-12-08 03:31:13 +00:00
Casey Klein
8bd2b94dea
1. Renamed check-metafunction' to
check-metafunction-contract'.
...
2. Generator now eventually focuses probability on randomly chosen preferred
productions.
svn: r12636
2008-11-29 14:41:49 +00:00
Robby Findler
48760756c6
svn: r12604
2008-11-27 00:45:45 +00:00
Robby Findler
2288db4fc9
modernized notation
...
svn: r12059
2008-10-18 15:00:53 +00:00
Casey Klein
9e316c3162
1. Improved support for generating random numbers.
...
2. Fixed bug in find-base-cases.
svn: r12002
2008-10-13 15:19:13 +00:00
Casey Klein
b2ce9f4cd3
1. Fixed bug in reduction-semantics.ss.
...
2. Fixed bug in generation of 'any pattern.
3. Added `check-metafunction' form.
svn: r11984
2008-10-09 19:09:11 +00:00
Robby Findler
d1b2bf63c7
added metafunction result caching
...
svn: r11883
2008-09-26 16:13:03 +00:00
Casey Klein
12bba4996f
Improved performance of `check' by factoring language and pattern
...
pre-processing out of its loop.
svn: r11819
2008-09-19 13:22:00 +00:00
Casey Klein
bab55e4e20
Changed syntax for `check'
...
svn: r11806
2008-09-18 18:58:39 +00:00
Casey Klein
3177457e0b
1. Generation of string/symbol/variable now uses compiled-lang-literals.
...
2. `check' prints counterexamples to current-error-port rather than
returning a string.
3. Non-terminals and built-ins (e.g., variable, number, etc.) now
properly bind in generation.
svn: r11804
2008-09-18 17:42:39 +00:00
Casey Klein
189ef12cd0
Fixed bug in generation of ellipses.
...
svn: r11794
2008-09-18 04:51:02 +00:00
Casey Klein
823338e262
Generator support for `cross' pattern and syntax errors for non-terminals
...
with no productions.
svn: r11588
2008-09-09 15:16:45 +00:00
John Clements
81d31e973e
added pattech annotation to side-condition
...
svn: r11579
2008-09-08 22:06:00 +00:00
John Clements
803c3051e8
added link for redex-match
...
svn: r11562
2008-09-05 21:17:57 +00:00
Robby Findler
10096627ed
PR 9725
...
svn: r11549
2008-09-05 03:27:01 +00:00
Casey Klein
1c654c35d2
Fixed bug in may-be-non-list-pattern?/internal and stored compatible
...
context language in compiled-lang, for use in term generator.
svn: r11537
2008-09-04 19:30:45 +00:00
Casey Klein
93c88b9370
Fixed ellipsis generation. The behavior of #:binds wrt ellipses may
...
need to be revisited.
svn: r11530
2008-09-03 02:06:42 +00:00
Robby Findler
898edef55e
changed to lang scheme/base
...
svn: r11527
2008-09-02 18:34:18 +00:00
Robby Findler
44b62899fa
improved blame error message when there is no source location
...
svn: r11526
2008-09-02 16:12:13 +00:00
Casey Klein
538b6e5e90
Fixed bug in generating `in-hole' patterns.
...
svn: r11464
2008-08-28 15:25:35 +00:00
Robby Findler
e29709e3d1
PR 9713
...
svn: r11457
2008-08-27 18:47:04 +00:00
Casey Klein
71f6c8b480
1. Generator refactored to avoid mutable state (fixing a bug).
...
2. Incremental progress on properly handling ellipsis patterns.
svn: r11400
2008-08-23 16:11:23 +00:00
Matthias Felleisen
52c1a313c8
elicit --> does not hold
...
svn: r11356
2008-08-20 15:48:16 +00:00
Robby Findler
47521e5ea4
improved printing a little bit for stepper and traces
...
svn: r11322
2008-08-19 04:57:33 +00:00
Robby Findler
5895bf4c35
where clauses in metafunctions now are in 'term'
...
svn: r11300
2008-08-18 21:23:56 +00:00