Discussion: [Sdl-developers] ABNF Grammar
[Sdl-developers] ABNF Grammar
Daniel LeuckMon Jan 8 14:55:43 HST 2007
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
> -----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
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










