<br><br><div class="gmail_quote">On Sat, Jan 3, 2009 at 11:04 AM, Matthew Flatt <span dir="ltr">&lt;<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
</div>A lexer can only directly match regular expressions, but you can match<br>
just the beginning of a comment, and then you can use a function call<br>
as the action to parse more.<br>
<br>
For an example of this technique,<br>
<br>
 &nbsp;collects/syntax-color/scheme-lexer.ss<br>
<br>
which has a lexer that calls `read-nested-comment&#39; when it matches<br>
&quot;#|&quot;.<br>
<font color="#888888"></font></blockquote><div><br>Thanks Matthew.&nbsp; I would look into it. <br><br><br></div></div>