[plt-scheme] parser-tools: recursive lex?
YC
yinso.chen at gmail.com
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://list.cs.brown.edu/pipermail/plt-scheme/attachments/20090103/49d3d705/attachment.html
More information about the plt-scheme
mailing list