Commit Graph

679 Commits

Author SHA1 Message Date
Casey Klein
d0e03bf53a Updates context matching with missing % contexts 2010-11-26 13:02:14 -06:00
Casey Klein
1147318426 Fixes bug with `in-hole' generation 2010-11-26 13:02:14 -06:00
Casey Klein
e7e504741e Fixes definition of evaluation contexts 2010-11-26 13:02:13 -06:00
Casey Klein
ae164d281b Adds optional `::=' keyword to language definition forms 2010-11-09 10:14:50 -06:00
Robby Findler
38b9b25ae0 redex: added indication of caching for metafunction tracing 2010-11-07 15:31:18 -06:00
Casey Klein
743ccafd15 Improves the error reporting and documentation for `define-relation' 2010-11-05 08:59:46 -05:00
Casey Klein
df810e8e10 Closes PR 11383 2010-11-04 17:31:35 -05:00
Robby Findler
8bf096b1e3 added contracts to define-relation.
(also removed old, wrong tl-pat stuff from the docs)
2010-11-04 17:29:14 -05:00
Casey Klein
f9b64fa2b8 Removes `apply-reduction-relation*' trie experiment 2010-10-31 17:28:19 -05:00
Casey Klein
152084d5ce Adds an experiment in using a trie in `apply-reduction-relation*' 2010-10-31 17:26:20 -05:00
Casey Klein
e9a909a504 Adds randomized tests for Racket VM model 2010-10-31 17:26:20 -05:00
Casey Klein
7f0e712dab Renames some functions to match latest paper draft. 2010-10-31 17:26:19 -05:00
Casey Klein
4542d071d5 Adds the `test-->>∃' form. 2010-10-28 20:22:35 -05:00
Casey Klein
f4c4b79049 Renames delim-cont tests so that they're not stripped by the distribution script.
(Merge to release branch.)
2010-10-25 15:18:16 -05:00
Casey Klein
4577de0790 Fixes PR 11336. 2010-10-20 15:56:57 -07:00
Casey Klein
42687d26d1 Reverts most of push #21257.
That push recompiles a clause of an extended metafunction by
replacing the LHS with a recompiled form of the `lhs-pat' field of the
`metafunc-case' struct. But that field (used by the test generator)
also incorporates the clause's `where' and `side-condition' clauses,
causing them to executed twice when applying the recompiled clause (once
while matching its LHS, and once while evaluating its RHS).
2010-10-20 15:56:57 -07:00
Robby Findler
c5c6c1c9e6 explained #:domain 2010-10-20 12:34:14 -05:00
Robby Findler
5c94ca5b7c idle attempts to reduce allocation in the matcher 2010-10-19 18:41:19 -05:00
Robby Findler
93260c7dd0 fixed mangled test case 2010-10-16 22:24:16 -05:00
Robby Findler
ccdea59949 added a failing test case; fixing this one isn't simple, but hopefully will also lead to good performance improvements (for some models at least) 2010-10-16 16:29:17 -05:00
Robby Findler
99d85159b6 adjusted define-metafunction/extension so that it recompiles the old cases in the new language 2010-10-16 16:29:15 -05:00
Robby Findler
e875f262d9 added a test case to be sure that the extension's clauses come before the original clauses in an extended metafunction 2010-10-16 16:29:15 -05:00
Robby Findler
c2d7f58e65 Rackety 2010-10-13 17:44:20 -05:00
Robby Findler
2652237559 fixed a bug in extended languages & the _ check 2010-10-13 17:44:19 -05:00
Robby Findler
d9ea5141e9 fixed doc contract spec 2010-10-13 15:55:16 -05:00
Steven Jaconette
9a4b2d2023 fixed a bug uncovered by a stronger syntactic check in redex 2010-10-04 11:24:36 -05:00
Robby Findler
c1285b12ed added checks to make ellipses appearing at different depths be a syntax error 2010-10-01 18:09:02 -05:00
Robby Findler
43d7058a16 added tag because section title was too long. 2010-09-26 22:47:36 -05:00
Robby Findler
1f8bbf43a7 fixed pb-last-column-visible so the stepper now shows the last column when you click the '->' (next) button 2010-09-26 22:47:36 -05:00
Robby Findler
20252ef150 typos 2010-09-26 22:47:35 -05:00
Robby Findler
a6dea9b85c removed current-pretty-printer (it was never released and it is
superceded by pretty-print-parameters).
2010-09-26 22:47:35 -05:00
Robby Findler
f87aa7ec61 added pretty-print-parameters to control how pretty printing happens for terms 2010-09-26 22:47:35 -05:00
Robby Findler
273e6e7d25 added paren-style
added missing provide for grammar-style
removed some dead code
2010-09-24 19:34:32 -05:00
Robby Findler
d4c68e7359 added grammar-style for the ::= and | in grammars in redex typesetting 2010-09-21 15:08:12 -05:00
Eli Barzilay
ee138cf2cb Some repeated "and and"s and "the the"s, and two more typos.
Closes PR 11229.
2010-09-20 15:38:18 -04:00
Steven Jaconette
7169c0e53e Second patch for redex compiler
-Fixes some bugs in the model
-Cleans up some unused code
-Adds the test cases
2010-09-20 10:04:50 -05:00
Casey Klein
17ac1fae3a Adds a parameter to enable the typesetting in commit ce211ac 2010-09-17 13:43:06 -05:00
Robby Findler
ce211ac364 adjusted metafunction application rendering so that ellipses do not
get commas put in front of them
2010-09-17 11:39:07 -05:00
Robby Findler
b8fc5fcfce Rackety 2010-09-16 13:37:34 -05:00
Robby Findler
28a253b206 added current-pretty-printer 2010-09-16 13:37:33 -05:00
Robby Findler
d03a7b220a added docs for linebreaks parameter
Adjusted implementation of linebreaking so that
  when there are linebreaks in a metafunction, the =
  signs line up together independent of the broken lines
2010-09-16 10:51:17 -05:00
Robby Findler
d419e8c12a changed the ->d contracts to ->i contracts 2010-09-09 14:21:35 -05:00
Casey Klein
14ceb68b92 Adds functions for testing pattern compiler 2010-09-08 14:12:47 -05:00
Steven Jaconette
f5482e5703 Initial compiler model (includes low level pattern language model and redex to low level lanaguage compiler) 2010-09-08 14:12:47 -05:00
Robby Findler
4d8cc1bc51 dont use the black-on-white preferences for redex's stepper 2010-08-31 07:33:13 -05:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Casey Klein
c66a727413 Fixes R6 tests 2010-08-26 06:04:06 -05:00
Robby Findler
bc1aeef3c0 calls gc before running each test 2010-08-25 13:37:34 -05:00
Robby Findler
1093399c1e added in a mode that prints the timing when finding all results 2010-08-25 12:56:20 -05:00
Robby Findler
1f830cc2c6 added a timing test that compares Racket and Redex 2010-08-25 10:39:49 -05:00
Robby Findler
d9e433d512 Rackety 2010-08-25 10:39:49 -05:00
Robby Findler
7955e50a3d Rackety 2010-08-25 10:39:49 -05:00
Robby Findler
283e9cfef3 oops, dont need this 2010-08-25 10:39:48 -05:00
Robby Findler
cda3d259ee added a file so drdr runs the test suites 2010-08-25 07:40:19 -05:00
Casey Klein
fbd2c3c86f Adds the feature requested in PR 10388 2010-08-18 13:19:12 -05:00
Casey Klein
5bbe748485 Tightens contract for reduction-relation->rule-names 2010-08-18 13:19:12 -05:00
Casey Klein
e0643611c3 Fixes "Reduce until ..." in stepper 2010-08-18 13:19:12 -05:00
Casey Klein
7daf515f65 Fixes a bug in `define-extended-language' 2010-08-18 13:19:12 -05:00
Casey Klein
85093fb536 Fixes a `plug' bug.
There are still problems with contexts, but this is an improvement.
2010-08-18 13:19:11 -05:00
Casey Klein
623925b5d7 Adds the delimited continuations model to examples 2010-08-18 13:19:11 -05:00
Casey Klein
cdf669fe5f Fixes one more bug in the model's `branch' verification 2010-08-18 13:19:11 -05:00
Casey Klein
9d022fed0d Fixes another bug in model's `branch' verification 2010-08-18 13:19:11 -05:00
Casey Klein
a858138843 Fixes a bug in model verifier's handling of `let-one' 2010-08-18 13:19:11 -05:00
Casey Klein
4cd2e8b01b Fixes a bug in model verifier's handling of `branch' 2010-08-18 13:19:11 -05:00
Casey Klein
9e41ab031f Cleans up the debugging advice section 2010-07-27 15:43:01 -05:00
Casey Klein
ae99d4e5bc Adds a `apply-reduction-relation*' example to the docs 2010-07-21 08:46:28 -05:00
Casey Klein
ad308e32f1 Removes undocumented, unmaintained random testing form 2010-07-21 08:46:27 -05:00
Casey Klein
541a0c4ecb Adds #:prepare keyword to random testing forms 2010-07-21 08:46:27 -05:00
Casey Klein
310f9ce05a Makes it a syntax error for a `where' clause to reuse a pattern variable at a different depth 2010-07-20 07:53:16 -05:00
Casey Klein
72b98b77fb Fixes a bug with `where' clauses 2010-07-20 07:53:16 -05:00
Casey Klein
8eb25bb2b9 Adds a #:attempt-size keyword to the random testing forms 2010-07-20 07:53:16 -05:00
Casey Klein
0477125354 Documents #:print? keyword for check-reduction-relation and check-metafunction 2010-07-20 07:53:16 -05:00
Casey Klein
253641a03e Fixes minor bug affecting check-reduction-relation 2010-07-20 07:53:16 -05:00
Jay McCarthy
ec487fac4c Slightly improving error message on test--> failure 2010-07-16 16:08:31 -06:00
Casey Klein
2025c27475 Fixes bug with "noclear" rewind. 2010-07-14 09:52:50 -05:00
Casey Klein
f786f24ac5 Makes let-rec verification match the implementation 2010-07-14 09:52:50 -05:00
Casey Klein
bc511912a4 Makes `let-one' verification match VM 2010-07-14 09:52:50 -05:00
Casey Klein
514f4e2e4b Restricts bytecode cycles to begin with proc-consts, as in the real machine. 2010-07-14 09:52:50 -05:00
John Clements
c42d5c25c7 fixed typo introduced by search-and-replace 2010-07-06 18:42:47 -04:00
Ryan Culpepper
8c42006ad7 unstable/syntax: renamed syntax-local-values/{catch -> record}, changed uses
also added comments to some unstable/syntax functions
2010-07-01 17:05:05 -06:00
Casey Klein
c083335ca5 Changes the matching of `where' clauses to the one most people expect. 2010-06-22 13:20:53 -05:00
Casey Klein
c6ed9b9a12 Fixes a bug in `where' clause binding. 2010-06-22 05:42:17 -05:00
Casey Klein
3eb9a6d6d0 Fixes a bug in the VM example 2010-06-21 14:41:10 -05:00
Casey Klein
d6b20a51d2 Lifts mysterious restriction on patterns that now seems unnecessary. 2010-06-21 11:24:30 -05:00
Casey Klein
daa8507e51 Fixes matcher bug 2010-06-21 10:35:05 -05:00
Casey Klein
dc8fc24e89 Fixes a bug in which effectful meta-function applications were cached. 2010-06-17 14:28:31 -05:00
Casey Klein
318ec585bc Fixes a bug in the VM model 2010-06-17 14:28:31 -05:00
Casey Klein
abd035aec2 Fixes a bug in the way Redex generates tests to exercise the LHSs of a
meta-function or reduction relation.
2010-06-07 10:52:23 -05:00
Casey Klein
cc162f3eeb Brings the Redex examples documentation up to date (for 5.0 release) 2010-05-24 09:19:48 -05:00
Eli Barzilay
de0cc7771b A lot of "DrScheme" -> "DrRacket"s. 2010-05-17 01:27:03 -04:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Eli Barzilay
86891b30a1 redex/examples/mzscheme-machine -> racket-machine 2010-05-15 18:41:08 -04:00
Casey Klein
cc67852317 Fixes URL typo 2010-05-12 08:48:27 -05:00
Casey Klein
7b15edee41 Racketifies Redex documentation 2010-05-12 07:58:08 -05:00
Matthew Flatt
6563ef6812 rackety framework and tools docs 2010-05-08 07:37:08 -06:00
Matthew Flatt
43027a8d9b switch printer to constructor+quote style 2010-05-06 10:33:42 -06:00
Casey Klein
026553c6f7 Fixes more failing Redex tests 2010-04-29 19:27:41 -05:00
Casey Klein
7d0a83b983 Updates tests for quasiquote printing and .rkt extension 2010-04-29 06:42:53 -05:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Casey Klein
52c6b4ef15 Adds a term-equivalence predicate to the test--> and test-->> forms.
svn: r18767
2010-04-09 00:08:39 +00:00
Casey Klein
0975798b31 Fixes PR 10842
svn: r18753
2010-04-07 19:57:52 +00:00
Casey Klein
ea2861b03a Fixes PR 10843
svn: r18752
2010-04-07 15:33:36 +00:00
Casey Klein
3d9806a606 Forces sequences to have length zero when the depth is zero
svn: r18726
2010-04-03 00:54:55 +00:00
Casey Klein
a9096f2e07 Adds to examples directory and cleans up tests
svn: r18693
2010-03-31 16:02:24 +00:00
Robby Findler
860f81bcef updated the unix bitmaps
svn: r18690
2010-03-31 12:36:44 +00:00
Casey Klein
6886f6540a Fixes handling of where/hidden and side-condition/hidden clauses in reduction-relation.
svn: r18683
2010-03-31 01:03:25 +00:00
Matthew Flatt
5f8e4b46fe redex: combine picts with htl-append instead of hbl-append for metafunction rendering
svn: r18487
2010-03-08 21:31:02 +00:00
Matthew Flatt
62a53f3de7 add 'where/hidden' and 'side-condition/hidden' to redex; adjust typesetting to keep metafunction side conditions in original order
svn: r18471
2010-03-04 23:20:52 +00:00
Casey Klein
d82fdbc317 Improved handling of syntax errors in `reduction-relation'
svn: r18431
2010-03-02 19:00:55 +00:00
Casey Klein
b3d9330672 Improved syntax error handling and cleaned up syntax error tests.
svn: r18070
2010-02-12 18:51:14 +00:00
Casey Klein
02f88787ff Fixed pattern parsing so that the components of variable-except,
variable-prefix, and cross patterns are treated as identifiers, not
arbitrary patterns.

svn: r18064
2010-02-12 16:34:38 +00:00
Casey Klein
c0ce0debbe Improved documentation of `check-metafunction'
svn: r18039
2010-02-10 18:33:53 +00:00
Eli Barzilay
c88a5a6856 A bunch of additional typos
svn: r17976
2010-02-05 03:21:52 +00:00
Casey Klein
db0ec3eb07 Special typesetting for metafunction `where' clauses in which the
right-hand side is a call to `variable-not-in' or `variables-not-in'

svn: r17920
2010-02-01 13:46:32 +00:00
Carl Eastlund
2e0cb8226e Replaced every "langauge" (note swapped vowels) with "language".
svn: r17918
2010-02-01 01:41:51 +00:00
Casey Klein
d9e5d3aa98 Another generator optimization
svn: r17902
2010-01-30 22:36:44 +00:00
Casey Klein
425dbf5af5 The first component of a `name' pattern is not an identifier, not a
pattern.

svn: r17896
2010-01-30 17:41:39 +00:00
Casey Klein
0e6c28e4b1 Improved performance of the test case generator
svn: r17894
2010-01-30 16:38:19 +00:00
Casey Klein
2d2a95de1e Made counterexample structure transparent
svn: r17882
2010-01-29 13:42:13 +00:00
Casey Klein
1b22ce82cd A flag to make the random testing forms return results instead of
printing on stdout.

svn: r17858
2010-01-28 01:12:54 +00:00
Casey Klein
3b5d13f229 Fixed bug in generate-term's error handling.
svn: r17856
2010-01-27 20:03:57 +00:00
Robby Findler
d6c94df670 changed the fonts used under linux for the bitmap test cases
svn: r17855
2010-01-27 19:23:37 +00:00
Casey Klein
8454db8115 Rename #:attempts to #:attempt-num in `generate-term'.
Added a second form of `generate-term' that produces a procedure.
Improved the docs for `generate-term'.

svn: r17853
2010-01-27 17:45:01 +00:00
Casey Klein
4271b7970c Dropped the "preferred productions" heuristic and the failed prototype
supporting accumulator-style generators.

svn: r17851
2010-01-27 15:52:15 +00:00
Robby Findler
cba82db678 added in unix versions of the bitmap tests
svn: r17842
2010-01-26 20:28:57 +00:00
Casey Klein
3068ae4bd5 This file should have been moved to tests instead of copied.
svn: r17839
2010-01-26 19:53:10 +00:00
Robby Findler
812a049b5b svn: r17838 2010-01-26 19:47:44 +00:00
Casey Klein
8fe66b9935 Somehow managed to copy the tests instead of moving them!
svn: r17837
2010-01-26 17:33:38 +00:00
Casey Klein
9c6fdd86c8 Moved tests into a separate directory. Changed run-tests.ss to suppress the diffs window when bitmap-test.ss fails, to avoid tripping up DrDr.
svn: r17836
2010-01-26 17:29:39 +00:00
Robby Findler
f54ccdc9d5 probable fix to error seen in drdr
svn: r17827
2010-01-25 21:51:52 +00:00
Casey Klein
bbc654c69e Typesetting now recognizes carets (^) in the underscore component of a
non-terminal reference, applying the non-terminal-superscript-style to
the text following the caret.

svn: r17801
2010-01-24 11:36:29 +00:00
Casey Klein
c8b8775805 Further clarified documentation
svn: r17636
2010-01-13 18:35:27 +00:00
Casey Klein
a47d38e15d Improved docs and error messages for define-metafunction/extension
svn: r17635
2010-01-13 18:21:27 +00:00
Eli Barzilay
01536ba44e switch to "#lang setup/infotab"
svn: r17598
2010-01-11 02:24:24 +00:00
Robby Findler
0eb5178ca8 svn: r17543 2010-01-07 20:06:18 +00:00
Robby Findler
52eee4547b fixed PR 10684 and fixed up some old, broken tests and fiddled with the test suite infrastructure
svn: r17536
2010-01-07 18:10:28 +00:00
Casey Klein
16fd573e7b Fixed violation of the invariant introduced in r16504.
svn: r17371
2009-12-20 19:36:38 +00:00
Casey Klein
97c2278a6b PR 10663
svn: r17332
2009-12-16 21:02:08 +00:00
Casey Klein
eb4403f1c7 PR 10650
svn: r17331
2009-12-16 20:46:58 +00:00
Robby Findler
d278ad3c86 added a clarification to the redex docs ala Carl's next post on icfp-test
svn: r17308
2009-12-15 16:57:37 +00:00
Robby Findler
dd18cc837f added a clarification to the redex docs ala Carl's post on icfp-test
svn: r17307
2009-12-15 16:41:55 +00:00
Casey Klein
4f140eed03 Metafunctions now respect caching-enabled? and set-cache-size!.
svn: r17271
2009-12-11 20:54:32 +00:00
Casey Klein
4b7b51b8de PR 10550
svn: r17230
2009-12-06 17:26:53 +00:00
Casey Klein
8c5089c37f PR 10027
svn: r17179
2009-12-03 21:45:57 +00:00
Casey Klein
bf64d93c64 Fixed a case where `term' raised an exception without a source location.
svn: r17172
2009-12-03 03:51:41 +00:00
Sam Tobin-Hochstadt
960bf4caab print success on current-output-port
svn: r16787
2009-11-15 14:35:29 +00:00
Sam Tobin-Hochstadt
a29172bc51 Add command line flags to disable things that are problematic for DrDr.
svn: r16751
2009-11-13 18:16:07 +00:00
Eli Barzilay
44d88cee6b newlines at EOFs
svn: r16630
2009-11-09 03:49:50 +00:00
Ryan Culpepper
7483b7ed20 unstable:
added struct and syntax libraries

svn: r16621
2009-11-08 19:20:53 +00:00
Casey Klein
2011272c06 Fixed source locations for term' and term-let' errors.
svn: r16592
2009-11-07 02:07:16 +00:00
Casey Klein
a021b75a67 Fixed PR 8765
svn: r16564
2009-11-05 19:33:19 +00:00
John Clements
829c6d783f added pi-calculus example
svn: r16527
2009-11-03 19:20:37 +00:00
Robby Findler
da743d4a49 changed test printout so that the summary is to stdout, not stderr
svn: r16524
2009-11-03 18:27:00 +00:00
Casey Klein
4be6482bf9 Fixed bug with repeated binders inside ellipses.
svn: r16504
2009-11-02 21:33:42 +00:00
Robby Findler
727e540b6e added support for rendering terms
svn: r16441
2009-10-27 21:24:31 +00:00
Jay McCarthy
d557687494 DrDr related changes
svn: r16403
2009-10-21 20:32:19 +00:00
Jay McCarthy
ba99cb4dbf More fixes for DrDr
svn: r16345
2009-10-16 22:30:04 +00:00
Robby Findler
e78faf0669 fixed a bug that prevented uses of redex-match in the right-hand sides of reduction-relation definitions
svn: r16344
2009-10-16 21:33:57 +00:00
Robby Findler
9545330d53 fixed the #:scheme-colors? argument to traces
svn: r16328
2009-10-15 19:24:46 +00:00
Casey Klein
0520a50f3e Fix to allow metafunction definition at the top-level.
svn: r16218
2009-10-02 16:54:44 +00:00
Casey Klein
f58882b4d1 Added support for collecting test coverage of metafunctions
svn: r16193
2009-09-30 21:32:20 +00:00
Casey Klein
50ce45e621 Updated expected results to reflect new trace's new output style.
svn: r16188
2009-09-30 16:35:11 +00:00
Casey Klein
38ed68b397 Fixed bug in extending extended metafunctions.
svn: r16187
2009-09-30 16:29:34 +00:00
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
Robby Findler
8b290c8ad2 svn: r16019 2009-09-16 00:35:09 +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
32b91c9e93 svn: r15324 2009-06-28 19:28:41 +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
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
Matthew Flatt
9453aaaccf assign authors to manuals
svn: r11287
2008-08-15 20:16:06 +00:00
Robby Findler
e0edc70215 svn: r11269 2008-08-15 04:11:31 +00:00
Matthew Flatt
2e0c6444f9 optional arguments as an alternative to parameters for render-language, language->pict, render-reduction-relation, and reduction-relation->pict
svn: r11265
2008-08-14 22:42:32 +00:00
Robby Findler
070b321558 added render-lw
svn: r11255
2008-08-14 21:22:26 +00:00
Robby Findler
5ebff2fd07 now exporting white-bracket-sizing.... (duh)
svn: r11245
2008-08-14 19:10:21 +00:00
Robby Findler
b70cd4151a removed last vestiges of multi-arg metafunctions and fixed a bug in the way white brackets were rendered
svn: r11244
2008-08-14 18:39:49 +00:00
Robby Findler
cb23506ca1 added white-bracket-sizing
svn: r11243
2008-08-14 17:55:58 +00:00
Matthew Flatt
fcabbbf576 change world animated GIFs to not loop
svn: r11242
2008-08-14 17:17:57 +00:00
Robby Findler
7c6d9bfb58 added exn:fail:redex
svn: r11221
2008-08-13 15:10:46 +00:00
Robby Findler
9bbcfd1324 svn: r11212 2008-08-13 01:33:15 +00:00
Robby Findler
b90232f42d added spring back to the docs
svn: r11190
2008-08-11 21:02:49 +00:00
Robby Findler
d89e0ba243 fixed typos
svn: r11170
2008-08-09 15:41:57 +00:00
Robby Findler
490582a9b6 fixed cross-ref bug
svn: r11160
2008-08-09 04:16:40 +00:00
Robby Findler
4c567d72a0 simplified typesetting interface somewhat
svn: r11159
2008-08-09 04:14:37 +00:00
Casey Klein
108cf06b46 Added generator support for named ellipses.
svn: r11126
2008-08-07 12:53:59 +00:00