[plt-scheme] Re: progress with parser-tools

From: Simon Michael (simon at joyful.com)
Date: Fri Jul 25 05:45:44 EDT 2008

> I've hit a new problem: parsing a HTML block, which has matching open 
> and close tags. In regexps it looks like "<([^>]+)>.*?</\\2>". I haven't 
> found any way to mimic the \2 reference with parser-tools. What to do ?

After more reading, I think parser-tools and similar bottom-up parsers 
can't do this job - it requires a top-down parser, such as 
http://www.lshift.net/blog/2005/08/22/json-for-mzscheme-and-a-portable-packrat-parsing-combinator-library 
or http://www.lshift.net/blog/2008/07/01/ometa-for-scheme .



Posted on the users mailing list.