
20 Oct
2011
20 Oct
'11
8:22 p.m.
On 20 October 2011 12:49, Radoslav Dorcik
One more question: Do you know If there is a lexing technology which can inter work with Parsec based Parser ? With inter work I mean that line number information is preserved across lexing/parsing.
Yes, you can use Alex lexers with Parsec for instance. The pattern to do this covered in section 2.11 "Advanced: Separate scanners" of the Parsec manual. For a full scanner this unfortunately leads to quite a bit of boilerplate so usually I use Parsec's own tokenizing code via Token module. http://research.microsoft.com/en-us/um/people/daan/download/parsec/parsec.pd...