<br><br><div class="gmail_quote">On Sat, Jan 3, 2009 at 11:04 AM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>></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>
collects/syntax-color/scheme-lexer.ss<br>
<br>
which has a lexer that calls `read-nested-comment' when it matches<br>
"#|".<br>
<font color="#888888"></font></blockquote><div><br>Thanks Matthew. I would look into it. <br><br><br></div></div>