Re: [Haskell-cafe] Frisby grammars that have context

2007-05-31 Thread Carl Witty
On Tue, 2007-05-29 at 10:18 -0400, Mark T.B. Carroll wrote: I've been playing with Text.Parsers.Frisby to see how it stacks against other options and, while it's been great so far, I am finding that I can't encode a grammar where what's acceptable depends on what's already been parsed in some

[Haskell-cafe] Frisby grammars that have context

2007-05-29 Thread Mark T.B. Carroll
I've been playing with Text.Parsers.Frisby to see how it stacks against other options and, while it's been great so far, I am finding that I can't encode a grammar where what's acceptable depends on what's already been parsed in some nontrivial way. To take a simple example, imagine a grammar

Re: [Haskell-cafe] Frisby grammars that have context

2007-05-29 Thread Mark T.B. Carroll
Actually, while I'm at it, another thing I was wondering: Text.ParserCombinators.Parsec.Char offers us nice things like `lower'. However, where's this stuff in Frisby? I could use something horrific like oneOf [filter isLower [minBound .. maxBound ]] or something, but how best to get