Hi Gambit List,
I was wondering, what do people use for pattern matching (in the ML sense) in gambit. Is there a port of plt's match.ss for gambit?
I found this[1] which works ok, but am I missing something else?
Many thanks,
Phil
[1] http://schemecookbook.org/Cookbook/MacroExampleASimplePatternMatcher
Afficher les réponses par date
Phil Dawes wrote:
I was wondering, what do people use for pattern matching (in the ML sense) in gambit.
I was wondering the exact same thing! Also, what do people use for regular expressions?
I was hoping that some snowballs implementing pattern matching and regular expressions would somehow come out, but I still have not :(.
Thanks!
David
Hi David,
David St-Hilaire wrote:
Phil Dawes wrote:
I was wondering, what do people use for pattern matching (in the ML sense) in gambit.
I was wondering the exact same thing! Also, what do people use for regular expressions?
I've been using pregexp[1] which has been fine for my needs. IIRC the file pregexp.scm works and compiles out of the box on gambit.
Hope that helps,
Phil
Hi,
On 9/4/07, Phil Dawes pdawes@users.sf.net wrote:
Hi Gambit List,
I was wondering, what do people use for pattern matching (in the ML sense) in gambit. Is there a port of plt's match.ss for gambit?
I found this[1] which works ok, but am I missing something else?
There's a much more featureful portable matcher at:
http://synthcode.com/scheme/match.scm
It's a full superset of Wright's MATCH, including non-linear patterns and ellipse patterns in non-tail positions.
Hi Alex,
Alex Shinn wrote:
There's a much more featureful portable matcher at:
http://synthcode.com/scheme/match.scm
It's a full superset of Wright's MATCH, including non-linear patterns and ellipse patterns in non-tail positions.
Brilliant! Many thanks for the pointer.
-Phil
P.S. I've just noticed that you're actually the author of this, so double thanks!