Eli Barzilay
af6be85ff5
Fix lots of indentation mistakes.
...
(Found by my ayatollah script...)
2013-03-14 10:55:47 -04:00
Robby Findler
42847ea523
follow up to William J. Bowman's commit
...
- put the tests together with the other define-union-language tests
- fix the docs
- add a release note
- construct the merged language a bit more directly
- properly deal with this kind of thing:
(define-language L1 (e f ::= 1 2 3))
(define-language L2 (e g ::= 4 5 6))
(define-union-language L L1 L2)
2013-03-01 19:38:57 -06:00
William J. Bowman
b0db8798b6
Changed `define-union-language' to merge nonterminals and their
...
right-hand-sides instead of causing an error when more than one language
in the union defines the same nonterminal.
2013-03-01 19:38:57 -06:00
Robby Findler
32529d89c0
adjust randomized racket machine tests to print to
...
stderr on failure and to not print anything on success
2013-01-29 06:57:07 -06:00
Burke Fetscher
2a9d42216e
redex-generator: determine bound order automatically
...
also, fix a bug where continuations in thunks returned
by redex-generator weren't being shuffled
2013-01-23 13:03:07 -06:00
Burke Fetscher
cde226c6d3
redex-generator: correctly drop failure continuations
2012-12-07 17:29:05 -06:00
Robby Findler
d94d479f15
added 'boolean' pattern to Redex
...
closes PR 13330
2012-11-30 19:17:27 -06: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
e6ab32593e
add redex-generator form and some tests
...
update examples/generate-types
2012-11-01 11:52:19 -05:00
Robby Findler
67d52138f9
provide language, reduction relation, and typing judgment from stlc.rkt
2012-10-21 19:55:53 -05:00
Robby Findler
9baefbe725
remove bogus case in stlc typing judgment form
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
8b92ec5677
linebreaking adjustments for typographical reasons
2012-10-04 10:17:28 -05:00
Robby Findler
c5b5c6f9b5
fixes suggested by latest reviewer of the hosc submission
2012-09-27 09:48:35 -05:00
Robby Findler
8ed42e6162
rename function scale-to-fit to avoid conflict
...
with newly introduced function with that name
2012-08-22 22:47:50 -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
Eli Barzilay
5cbdf4dc76
Provide `main' too, since it's used by redex/tests/run-tests.
...
(Broken in 4c2940a6.)
2012-07-12 00:12:44 -04:00
Eli Barzilay
4c2940a6d9
Simplify away uses of "-t" in `drdr:command-line'.
...
In some cases use `module+' to make the code run nicely without a "-m".
(And some other minor tweaks.)
2012-06-19 12:52:22 -04:00
Eli Barzilay
17090fca4f
A bunch of fprintf' ->
eprintf' conversions (and a few related things).
2012-05-06 12:06:00 -04:00
Eli Barzilay
f7c67b49a4
Big newline at EOF scan.
2012-02-29 00:28:11 -05: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
811a9227c3
Rackety
2012-02-07 15:50:52 -06:00
Robby Findler
0c6e0a11cf
removed ambiguity from the cont-mark-transform's "a" non-terminal
...
Redex no longer has extra checks to eliminate redundant matches
(as those checks are prohibitively expensive for the lambdajs model)
so redundancy in the grammar can, when combined with context
decomposition or named patterns, lead to significant slowdowns
2012-01-09 12:57:22 -06:00
Robby Findler
fbed2d5af7
remove (broken) attempt at optimization Jay suggested
...
also clean up some test cases that I wasn't sure about earlier
2012-01-08 12:13:37 -06:00
Robby Findler
5dcbedc768
redex: adjust the caching strategy
...
Instead of using a hash-table, use the equal-hash-code directly;
this lets me evict entries only when they clobber each other,
and generally keep good cache utilization.
Also, cut the cache size by a factor of 5 while still having a
slight performance improvement on the r6rs test suite benchmark.
On that same benchmark, there are 1714812 misses in the cache, but
only 3485 times is an entry in the cache clobbered
2012-01-02 10:08:31 -06:00
Robby Findler
424a535cf4
first attempt at Jay's optimization for redex
...
(only did enough to get the r6rs tests running)
2012-01-02 10:08:28 -06:00
Robby Findler
f8cbe1ad23
add the List Machine benchmark by Appel, Dockins, and Leroy
2011-12-10 01:34:58 -06:00
Robby Findler
a43973157b
add call to 'test-results'
2011-10-12 20:46:20 -05:00
Casey Klein
83451fea98
Add evaluation contexts for by-need letrec calculus as an example
2011-09-19 12:20:45 -05:00
Eli Barzilay
1db5ad97f8
Fix another bunch of "language" typos.
2011-08-26 05:26:46 -04:00
Casey Klein
a0f2db7574
Drops `traces' call to make the file DrDr-friendly
2011-08-15 12:46:14 -05:00
Casey Klein
cd1281fa65
Changes example from arithmetic to pairs
2011-08-12 04:33:38 -05:00
Casey Klein
d66c48ecf7
Updates STLC example to use define-judgment-form
2011-08-10 12:24:01 -05:00
Casey Klein
f803f187bd
Adds bigger define-judgment-form examples
2011-08-10 12:24:01 -05:00
Casey Klein
31ec46170d
Adds STLC example to README
2011-08-10 12:24:01 -05:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Eli Barzilay
40124a0619
A long overdue scan to eliminate files without terminating newlines.
...
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Casey Klein
3187cac716
Updates to lam's new toplevel-map field
2011-05-03 17:59:52 -05:00
Matthew Flatt
6f1aa7bc00
adjust Redex example after bytecode-structure change
2011-05-03 08:53:49 -06:00
Robby Findler
499852087d
stlc bug fix
2011-04-28 14:51:29 -05:00
Casey Klein
24d697e83c
Fixes bug in STLC example
2011-04-22 04:43:11 -05:00
Robby Findler
77c25430af
added an example with a type checker
2011-04-02 13:36:29 -05:00
Casey Klein
0839f763ec
Fixes a bug in the deref rule
2011-03-29 16:05:54 -05:00
Casey Klein
8f006f1a1f
Fixes bugs in error transitions
2011-03-29 15:57:50 -05:00
Casey Klein
fe0525b7bb
Reduces the memory used by the randomized tests
2011-02-04 09:15:38 -06:00
Casey Klein
3250ff846c
Adds a Redex version of Jay's continuation mark transformation
2011-01-29 15:26:30 -06:00
Robby Findler
d4aeb3fa4c
Rackety
2011-01-17 17:19:37 -06:00
Casey Klein
f742479d8d
Fixes another bug in the test generator.
2011-01-14 13:41:09 -06:00
Casey Klein
11900c6c4f
Changes logging to use write instead of display
2011-01-14 13:41:09 -06:00