Discussion: [Sdl-developers] ABNF Grammar
[Sdl-developers] ABNF Grammar
J. David BeutelMon Jan 8 14:53:09 HST 2007
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
"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
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










