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

Patrick Niemeyer
Tue Jan 9 16:42:19 HST 2007


Let me know if there is anything I can look at...  I can tell you  
what we accept in the bsh JavaCC grammar, but yes, it should be  
simple to skip during tokenization.


Pat


On Jan 8, 2007, at 6:54 PM, Daniel Leuck wrote:

> Hi Jesse,
>
>
>
> I would just write a method to consume the multiline comments  
> during the tokenization phase.  At this point, I don’t think SDL’s  
> grammar is complex enough to require use of a parser generator.  I  
> considered using JJTree as we do for BeanShell (https:// 
> javacc.dev.java.net/doc/JJTree.html), but I discovered writing it  
> by hand wasn’t too hard, and the Java and C# implementations are  
> very fast.
>
>
>
> Dan
>
>
>
> From: sdl-developers-bounces at ikayzo.org [mailto:sdl-developers- 
> bounces at ikayzo.org] On Behalf Of Jesse Weaver
> Sent: Monday, January 08, 2007 2:29 PM
> To: sdl-developers at ikayzo.org:Information relating to SDL development
> Subject: Re: [Sdl-developers] ABNF Grammar
>
>
>
> Just in case it makes a difference, I'm writing a completely  
> handcoded recursive descent parser for the C++ version  
> (Boost::Spirit is a lot of library overhead). Right now, the  
> parsing functions for each part of the grammar will look at the  
> text stream directly. Should I add a lexer-type class, and  
> implement the multiline comments in there, or simply write in  
> multiline comments as a fallback when nothing else can be matched?
>
> -- 
> 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
>
>

Pat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20070109/14ec2e1f/attachment.htm>


Query: [How to search]

Display: Description: Sort: