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

J. David Beutel
Mon Jan 8 14:53:09 HST 2007


"Jesse Weaver" <pianohacker at gmail.com> wrote on Monday, January 08, 2007 
14:28:55:
> 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?

I don't know.  I just noticed how SDL differs from Java on this point.  
In Java the newlines don't matter; they're just whitespace, except with 
the single-line comments.  But in SDL the newlines also separate 
children, so they must be parsed at the syntactic level.

In other words, I haven't given this enough thought, so I'll stop 
commenting.

Cheers,
11011011



Query: [How to search]

Display: Description: Sort: