Sam Tobin-Hochstadt
5d17cf0417
Byte strings are legal literals in match constants.
...
svn: r8543
2008-02-05 17:48:10 +00:00
Matthew Flatt
b2dbe63ed1
small doc fixes, plus change to syntax pattern matching to allow null as a dotted match after ellipses
...
svn: r8384
2008-01-23 01:35:26 +00:00
Sam Tobin-Hochstadt
f951cac011
Use let-bound identifiers properly for handle-end-ddk-list.
...
svn: r8372
2008-01-20 14:36:32 +00:00
Sam Tobin-Hochstadt
f2c9c59b06
Start add match-...-nesting parameter.
...
svn: r8371
2008-01-20 14:35:58 +00:00
Sam Tobin-Hochstadt
3f93fd0f25
Use an extra let binding to make Typed Scheme happy.
...
svn: r8366
2008-01-18 22:44:54 +00:00
Sam Tobin-Hochstadt
b997f8b0f7
Use symbolic comparison for => in match, to handle new bindings from `cond'.
...
svn: r7864
2007-11-29 23:02:23 +00:00
Matthew Flatt
44478fa8e0
match docs
...
svn: r7817
2007-11-22 18:51:26 +00:00
Matthew Flatt
39cedb62ed
v3.99.0.2
...
svn: r7706
2007-11-13 12:40:00 +00:00
Robby Findler
c3e07c0a8c
removed bogus inference from matcher's optimizer
...
svn: r6034
2007-04-24 18:22:10 +00:00
Matthew Flatt
81b7aea7d9
fix expansion of match-define to use define-values instead of begin with set!
...
svn: r5786
2007-03-19 01:55:21 +00:00
Eli Barzilay
19c33a8e2a
no need for string->immutable-string when creating exceptions
...
svn: r5372
2007-01-17 01:18:50 +00:00
Matthew Flatt
7b13755dad
unit clean-up
...
svn: r5160
2006-12-22 01:26:58 +00:00
Sam Tobin-Hochstadt
2b876b1f11
Port render-test-list.scm and helpers to use new-style units.
...
svn: r5035
2006-12-05 22:51:47 +00:00
Sam Tobin-Hochstadt
605c510b9e
Merged changes from branch:
...
http://svn.plt-scheme.org/plt/branches/samth/match2
revisions 4220:4417
Included Matthew's version of regexp-error change, not Sam's.
Major changes:
- simplification pass
- define match-letrec in terms of match-define
- show steps of match-expander in macro stepper
- substantial refactoring of gen-match
- removed unused times-used-neg field of test struct
- added match:internal-error
- general refactoring
- bug fix in parsing of quasi-patterns
svn: r4418
2006-09-22 18:35:22 +00:00
Matthew Flatt
bbcd99e537
allow regexps for pregexp pattern in match
...
svn: r4410
2006-09-22 01:59:40 +00:00
Sam Tobin-Hochstadt
0a5ff7fddd
Fix bug in definition of match-define.
2006-09-20 11:30:20 -04:00
Sam Tobin-Hochstadt
00383c4c5d
convert-pat:
...
- reformatting
- use constant-data?
render-test-list-impl:
- reformatting
- refactoring
2006-09-20 11:02:15 -04:00
Sam Tobin-Hochstadt
a6f8fbe350
Fix bug in conversion of dotted patterns.
2006-09-19 14:31:17 -04:00
Sam Tobin-Hochstadt
086db937b8
pregexp can now return a regexp object.
2006-09-19 13:01:04 -04:00
Sam Tobin-Hochstadt
b42e317e0c
Changed convert-pat to use syntax/loc.
2006-09-15 12:12:10 -04:00
Sam Tobin-Hochstadt
ee63e4e80d
Factor observe-step into separate file.
...
Use observe step in match.ss match-expanders.
2006-09-11 15:43:50 -04:00
Sam Tobin-Hochstadt
7646ee635d
Show correctly marked results in stepper.
2006-09-11 00:57:35 -04:00
Sam Tobin-Hochstadt
34aa12ddac
Added expansion of match-expanders to macro-debugger.
2006-09-10 21:24:35 -04:00
Sam Tobin-Hochstadt
506c154ea8
Add new simplification pass before render-test-list.
...
Simplification expands match expanders and removes syntactic sugar.
Also, syntax errors are checked in the simplification phase, so better
error messages can be given.
2006-09-07 12:02:41 -04:00
Sam Tobin-Hochstadt
6034e5e0d5
fix bug with list-rest in quasi-patterns
2006-09-06 14:26:19 -04:00
Sam Tobin-Hochstadt
b1bc4714d5
update-counts: Fix a really dumb bug in logical-equal? that
...
caused huge time blowup.
svn: r4259
2006-09-06 16:50:50 +00:00
Sam Tobin-Hochstadt
3a77f5a914
Work toward adding simplication pass before render-test-list.
2006-09-05 18:56:04 -04:00
Sam Tobin-Hochstadt
32e8e72175
gen-match:
...
- use begin-with-definitions for code clarity
- rename some variables
- better contracts (comments)
test-structure:
- delete unused field
update-counts:
- general reformatting
- delete dead code
- refactoring to eliminate duplication
2006-09-01 18:42:58 -04:00
Sam Tobin-Hochstadt
c702686b01
gen-match.ss: kill dead code, remove pointless argument
...
match-internal-func.ss:
- use match-define to implement match-letrec
- clean up match-letrec using with-syntax
2006-09-01 17:27:47 -04:00
Sam Tobin-Hochstadt
9e17a6d993
reformatting
2006-09-01 16:52:45 -04:00
Sam Tobin-Hochstadt
d1fe9f9645
Rewrite emit and assem to use better style.
...
Remove pointless optional arguments in getbindings.
Don't create unneccessary match-lambda*.
Implement keyword arguments to define-match-expander.
Lots of refactoring of gen-match for general clarity.
Use combinators instead of writing our own loops.
Simplify struct info accessor.
Add timing printer.
Refactor coupling/binding for general clarity.
Rewrite logical-equal not to use the expansion of match.
General replacement of () with [].
svn: r4192
2006-08-30 19:41:47 +00:00
Sam Tobin-Hochstadt
0cf62c196a
Changed #:macro to #:expression in define-match-expander.
...
svn: r3945
2006-08-03 20:18:22 +00:00
Sam Tobin-Hochstadt
931d214b69
Removed obsolete mzlib/private/plt-match directory.
...
Moved match implementation to new mzlib/private/match directory.
Implement keyword arguments to define-match-expander.
svn: r3943
2006-08-03 20:01:39 +00:00