|
From: | Matt Gushee |
Subject: | Re: [Chicken-users] Mutual recursion w/ comparse |
Date: | Fri, 29 May 2015 18:07:41 -0600 |
> I also saw that comparse provides a similar macro called
> 'recursive-parser', but for some reason that didn't work when I tried it.
> Maybe I was using it wrong.
That's right -- it's slightly more efficient than your version as it
memoizes the wrapped parser so that it only needs to be constructed the
first time it is used.
If you are on Comparse 0.2.2 you would define your parser just like
before, wrapped in `recursive-parser', i.e. the interface should be
identical to your `mrp'. The interface used to be different before
Comparse 0.2.2.
[Prev in Thread] | Current Thread | [Next in Thread] |