Commit Graph

218 Commits

Author SHA1 Message Date
Eli Barzilay
6cea680b62 * Reorganize macro code.
* Change `trace-apply' to accept keyword arguments by being a keyworded
  function itself
* Renamed `trace-apply' to `trace-call' -- since it's not following the
  calling convention of `apply'.

svn: r16161
2009-09-29 07:33:07 +00:00
Casey Klein
29a3ed2a20 Improved error reporting for side-conditions Redex can't satisfy
svn: r16128
2009-09-25 15:16:29 +00:00
Ryan Culpepper
9ca3192a60 redex, macro-debugger: stxclass -> syntax/parse, syntax/private/util
svn: r15986
2009-09-11 23:16:22 +00:00
Robby Findler
72d6f85c47 PR 10416
svn: r15886
2009-09-05 10:29:00 +00:00
Casey Klein
1d4da3df4c Term generator now less aggressive about producing weird variables and
strings.

svn: r15860
2009-09-02 19:51:30 +00:00
Jay McCarthy
829c8416b6 Fix a bug suggested by Robby and add a test case
svn: r15718
2009-08-12 20:43:10 +00:00
Jay McCarthy
1dba4edcb9 A fix for my example hide hole based models
svn: r15715
2009-08-12 20:08:36 +00:00
Robby Findler
5adb4eb004 changed the meaning of one of the pretty-print parameters slightly and used that to fix redex's stepper
svn: r15419
2009-07-09 15:55:11 +00:00
Matthew Flatt
2c973452d4 refine compact-vertical rule rendering to allow overlap between the labels and side conditions, and also use label-space
svn: r15397
2009-07-06 17:19:25 +00:00
Matthew Flatt
ebb45abee5 fix rendering of atomic transformers that produce strings, notably for hole
svn: r15394
2009-07-06 15:11:29 +00:00
Eli Barzilay
a70bf64fd9 Newlines at EOFs
svn: r15380
2009-07-04 02:28:31 +00:00
Matthew Flatt
482816bf34 restore use of atomic rewriters for literals
svn: r15363
2009-07-02 14:49:59 +00:00
Matthew Flatt
e0e8c86688 fix up-down/compact-side-conditions
svn: r15360
2009-07-02 02:23:29 +00:00
Robby Findler
890882a6fd added x-spacing and y-spacing parameters to traces and traces/ps
svn: r15356
2009-07-01 18:24:47 +00:00
Robby Findler
62bc659ec8 fixed bug in rendering of reduction relations; they now preserve the relative ordering of side-conditions and where clauses
svn: r15354
2009-07-01 16:29:57 +00:00
Robby Findler
158b6de824 fixed bug the ordering of metafunction side-conditions during rendering
svn: r15353
2009-07-01 16:10:23 +00:00
Robby Findler
ba5aea8cdd added 'left-right/beside-side-conditions
svn: r15350
2009-07-01 04:45:02 +00:00
Matthew Flatt
5ae06f1d2c try to fix metafunction typesetting to make it independent of the order of metafunction definitions
svn: r15338
2009-06-30 15:41:58 +00:00
Robby Findler
fa0f182e80 fixed the way atomic rewriters work so that non-terminals with underscores render properly
svn: r15332
2009-06-30 04:18:34 +00:00
Robby Findler
ee365bb698 svn: r15323 2009-06-28 16:34:55 +00:00
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
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
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
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
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
7d881a32bf svn: r14588 2009-04-23 14:57:51 +00:00
Casey Klein
2c8c8638ac Barebones interface for overriding default generators.
svn: r14519
2009-04-15 14:09:35 +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
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
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
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
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
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
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