
6 Nov
2009
6 Nov
'09
11:13 a.m.
On 06/11/2009 15:17, John A. De Goes wrote:
You need a bottom-up parser to do fragment parsing. I'm not sure one exists for Haskell.
In Happy you can define multiple entry points to a grammar, which is how GHCi parses statements using the same parser that is used to parse complete modules. You'd have to modify the parser in haskell-src(-exts) to do add the entry points, though. Cheers, Simon