<div>David,</div>  <div>&nbsp;</div>  <div>You are right. I was looking at the wrong Java grammar. Also, the C grammar predates what we would consider reasonably fast machines by&nbsp;a few decades. At the time it would have made more sense to "optimize" the comment handling out of the grammar, and use lexer tricks. This might not be an option for SDL's grammar, especially if the Java comment grammar works as advertised.</div>  <div>&nbsp;</div>  <div>Eric<BR><BR><B><I>"J. David Beutel" &lt;jdb@getsu.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Java defines two separate grammars: lexical and syntactic. The comments <BR>are in the lexical grammar, along with Unicode escapes and whitespace. <BR>It's applied separately, before the syntactic grammar.<BR><BR>http://java.sun.com/docs/books/jls/third_edition/html/grammars.html#151185<BR><BR>I guess this follows the tradition of Lex and Yacc, and
 many languages <BR>do it the same way. I would have assumed that the distinction was for <BR>performance reasons, but since performance is so much better nowadays, I <BR>guess it also makes it easier to understand.<BR><BR>So I wouldn't worry about unifying it for SDL.<BR><BR>Cheers,<BR>11011011<BR><BR>"Jesse Weaver" <PIANOHACKER@GMAIL.COM>wrote on Monday, January 08, 2007 <BR>08:06:27:<BR>&gt; I guess it'll have to be. Thanks for the advice, all.<BR>&gt;<BR>&gt; On 1/8/07, *Daniel Leuck* <DAN@IKAYZO.COM <mailto:dan@ikayzo.com>&gt; wrote:<BR>&gt;<BR>&gt; Hi Eric,<BR>&gt;<BR>&gt; <BR>&gt;<BR>&gt; Thank you for the feedback. Jesse - perhaps your comment above<BR>&gt; the definition noting that multi-line comments are not covered is<BR>&gt; sufficient.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Sdl-developers mailing list<BR>&gt; Sdl-developers@ikayzo.org <mailto:Sdl-developers@ikayzo.org><BR>&gt;
 http://ml.ikayzo.org/mailman/listinfo/sdl-developers<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; -- <BR>&gt; Jesse<BR>&gt;<BR>&gt; -----------<BR>&gt; There is a theory which states that if anybody ever discovers exactly <BR>&gt; what the Universe is for and why it is here, it will instantly <BR>&gt; disappear and be replaced by something even more bizarre and <BR>&gt; inexplicable. There is another theory which states that this has <BR>&gt; already happened. - Douglas Adams, author of Hitchhiker's Guide to the <BR>&gt; Galaxy<BR>&gt; ------------------------------------------------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Sdl-developers mailing list<BR>&gt; Sdl-developers@ikayzo.org<BR>&gt; http://ml.ikayzo.org/mailman/listinfo/sdl-developers<BR>&gt; <BR><BR>_______________________________________________<BR>Sdl-developers mailing
 list<BR>Sdl-developers@ikayzo.org<BR>http://ml.ikayzo.org/mailman/listinfo/sdl-developers<BR></BLOCKQUOTE><BR></mailto:Sdl-developers@ikayzo.org><BR><BR>"Those who would give up essential liberty to purchase<br>a little temporary safety deserve neither liberty nor<br>safety." -- B. Franklin