Commit Graph

44 Commits

Author SHA1 Message Date
Casey Klein
3b5d13f229 Fixed bug in generate-term's error handling.
svn: r17856
2010-01-27 20:03:57 +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
Casey Klein
38ed68b397 Fixed bug in extending extended metafunctions.
svn: r16187
2009-09-30 16:29:34 +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
Casey Klein
1d4da3df4c Term generator now less aggressive about producing weird variables and
strings.

svn: r15860
2009-09-02 19:51:30 +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
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
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
Casey Klein
289b200057 Fixed bug in parse-language.
svn: r14155
2009-03-17 18:21:11 +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
6d5f966019 Added a #retries keyword to the forms that generate random terms.
svn: r13484
2009-02-07 13:26:37 +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
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
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
Casey Klein
6afb62f510 Fixed a bug in find-base-cases.
svn: r13303
2009-01-28 16:30:22 +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
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +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
65fad6047d Exported and documented the term generator's public interface.
svn: r13053
2009-01-09 21:53:53 +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
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
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
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
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
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
Casey Klein
538b6e5e90 Fixed bug in generating `in-hole' patterns.
svn: r11464
2008-08-28 15:25:35 +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
Casey Klein
108cf06b46 Added generator support for named ellipses.
svn: r11126
2008-08-07 12:53:59 +00:00
Casey Klein
40056b3d62 Simplified generator, due to removal of named holes.
svn: r11096
2008-08-05 23:38:30 +00:00
Robby Findler
6235970d42 removed named holes from Redex
svn: r11093
2008-08-05 21:28:12 +00:00
Casey Klein
b144254b58 Rewrote `generate' as a macro that rewrites the side-conditions in its
target pattern, removed `try', and improved `check'.

svn: r11074
2008-08-04 22:39:23 +00:00
Casey Klein
3e3bbe5c24 Added support for patterns any', hide-hole', and
`variable-not-otherwise-mentioned' and improved error reporting for
`try'.

svn: r11035
2008-08-02 15:35:54 +00:00
Casey Klein
ba4b0b6301 - Fixed bug in pick-char' and random-string'.
- Added support for hole and in-hole patterns.
- Fixed infinite loop triggered by `any' pattern.
- Removed schemeunit-test from run-all-tests.ss.

svn: r10978
2008-07-30 00:46:30 +00:00
Robby Findler
341d0c76a9 adding redex to main SVN archive so it goes into the distribution
svn: r10974
2008-07-29 21:46:15 +00:00