[plt-scheme] parser-tools: recursive lex?

From: YC (yinso.chen at gmail.com)
Date: Sat Jan 3 19:44:32 EST 2009

On Sat, Jan 3, 2009 at 11:04 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> A lexer can only directly match regular expressions, but you can match
> just the beginning of a comment, and then you can use a function call
> as the action to parse more.
> For an example of this technique,
>  collects/syntax-color/scheme-lexer.ss
> which has a lexer that calls `read-nested-comment' when it matches
> "#|".

Thanks Matthew.  I would look into it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090103/49d3d705/attachment.html>

Posted on the users mailing list.