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

Daniel Leuck
Mon Jan 8 14:55:43 HST 2007



> -----Original Message-----
> From: sdl-developers-bounces at ikayzo.org [mailto:sdl-developers-
> bounces at ikayzo.org] On Behalf Of J. David Beutel
> Sent: Monday, January 08, 2007 2:53 PM
> To: sdl-developers at ikayzo.org:Information relating to SDL development
> Subject: Re: [Sdl-developers] ABNF Grammar
> 
> "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.

That's an excellent point.  Newlines in SDL are significant, just as they
are in languages like Python.

Dan



Query: [How to search]

Display: Description: Sort: