Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: [Sdl-developers] ABNF Grammar

[Sdl-developers] ABNF Grammar

E M
Mon Jan 8 14:19:04 HST 2007


David,
   
  You are right. I was looking at the wrong Java grammar. Also, the C grammar predates what we would consider reasonably fast machines by 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.
   
  Eric

"J. David Beutel" <jdb at getsu.com> wrote:
  Java defines two separate grammars: lexical and syntactic. The comments 
are in the lexical grammar, along with Unicode escapes and whitespace. 
It's applied separately, before the syntactic grammar.

http://java.sun.com/docs/books/jls/third_edition/html/grammars.html#151185

I guess this follows the tradition of Lex and Yacc, and many languages 
do it the same way. I would have assumed that the distinction was for 
performance reasons, but since performance is so much better nowadays, I 
guess it also makes it easier to understand.

So I wouldn't worry about unifying it for SDL.

Cheers,
11011011

"Jesse Weaver" 
wrote on Monday, January 08, 2007 
08:06:27:
> I guess it'll have to be. Thanks for the advice, all.
>
> On 1/8/07, *Daniel Leuck* > wrote:
>
> Hi Eric,
>
> 
>
> Thank you for the feedback. Jesse - perhaps your comment above
> the definition noting that multi-line comments are not covered is
> sufficient.
>
>
>
> _______________________________________________
> Sdl-developers mailing list
> Sdl-developers at ikayzo.org 
> http://ml.ikayzo.org/mailman/listinfo/sdl-developers
>
>
>
>
> -- 
> Jesse
>
> -----------
> There is a theory which states that if anybody ever discovers exactly 
> what the Universe is for and why it is here, it will instantly 
> disappear and be replaced by something even more bizarre and 
> inexplicable. There is another theory which states that this has 
> already happened. - Douglas Adams, author of Hitchhiker's Guide to the 
> Galaxy
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sdl-developers mailing list
> Sdl-developers at ikayzo.org
> http://ml.ikayzo.org/mailman/listinfo/sdl-developers
> 

_______________________________________________
Sdl-developers mailing list
Sdl-developers at ikayzo.org
http://ml.ikayzo.org/mailman/listinfo/sdl-developers



"Those who would give up essential liberty to purchase
a little temporary safety deserve neither liberty nor
safety." -- B. Franklin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20070108/edbefe3f/attachment.htm>


Query: [How to search]

Display: Description: Sort: