[Haskell-cafe] Parser left recursion

Roman Cheplyaka roma at ro-che.info
Sun Feb 24 13:39:13 CET 2013


* Kim-Ee Yeoh <ky3 at atamo.com> [2013-02-24 19:22:33+0700]
> On Sun, Feb 24, 2013 at 7:09 PM, Roman Cheplyaka <roma at ro-che.info> wrote:
> 
> > Thus, your
> > recursion is well-founded — you enter the recursion with the input
> > strictly smaller than you had in the beginning.
> >
> 
> Perhaps you meant /productive/ corecursion?
> 
> Because the definition "A ::= B A" you gave is codata.

It is just a grammar production, which I chose to interpret recursively.

Whether it's productive when interpreted corecursively depends on the
particular interpretation, I guess, and may not actually depend on
factors like left recursion. I haven't thought about it much.

Roman



More information about the Haskell-Cafe mailing list