syntax-case treats _ as placeholder
authorAndy Wingo <wingo@pobox.com>
Mon, 21 Jun 2010 18:54:14 +0000 (20:54 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 Jun 2010 18:56:05 +0000 (20:56 +0200)
commitb78d91d517d900ee9825393be97d1f9079381367
tree745c1cf6078ae1db06c7486a32bb3421b5521ce7
parent233b5d892cf56892f4e0e6ad9bc5e79a817fe023
syntax-case treats _ as placeholder

* module/ice-9/psyntax.scm (underscore?): New helper, like ellipsis?.
  (syntax-case): Treat the _ pattern as a matches-all pattern,
  disallowing it from the keyword list. Another well-thought part of the
  R6RS.
  ($sc-dispatch): Dispatch _ patterns.

* module/ice-9/psyntax-pp.scm: Regenerated.

* test-suite/tests/syncase.test ("_ is a placeholder"): Add a test.
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm
test-suite/tests/syncase.test