[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] psyntax tail patterns
From: |
Andreas Rottmann |
Subject: |
[PATCH] psyntax tail patterns |
Date: |
Thu, 29 Oct 2009 21:55:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi!
This is a followup on my earlier message on this topic[0]. I've prepared
a patch that adds partial support for tail patterns. Things like the the
SRFI-34 `guard' macro from [0] are supported, but you still can't
combine dotted patterns with tail patterns, e.g.
(syntax-rules (else)
((foo bar ... (else something) . rest)
<TEMPLATE-HERE>))
will *not* work; there's the issue that one can't just transcribe
the implementation of this feature from the latest version of psyntax,
as I've done for non-dotted tail patterns, as it's implemented using a
dotted pattern like the above. Alas!
[ As a side remark, I don't really understand why one has to implement a
macro expander in a way that requires bootstrapping ]
syncase-tail-patterns.diff
Description: Text Data
[0] <http://article.gmane.org/gmane.lisp.guile.devel/9442>
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] psyntax tail patterns,
Andreas Rottmann <=