Discussion: [Sdl-developers] ABNF Grammar
[Sdl-developers] ABNF Grammar
Daniel LeuckSun Jan 7 23:15:47 HST 2007
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
Hi Eric, Thank you for the feedback. Jesse - perhaps your comment above the definition noting that multi-line comments are not covered is sufficient. Dan _____ From: sdl-developers-bounces at ikayzo.org [mailto:sdl-developers-bounces at ikayzo.org] On Behalf Of E M Sent: Sunday, January 07, 2007 9:59 PM To: sdl-developers at ikayzo.org:Information relating to SDL development Subject: Re: [Sdl-developers] ABNF Grammar Jesse, I remember that the Lex and Yacc Oreilly book (which I unfortunately gave away) had an example of lexing multiline comments out of the token stream. It was done using "start conditions" which basically define a sublexer to parse the comment out separate from the language definition. I know that no one is probably using Flex anymore, but if you are writing a lexer, there might be a hint in the Flex manual. There is a specific example of parsing C comments with Flex in section 0.11 and 0.18. Also, I took a look at the official C grammer, and the official Java grammar, and noticed that both do NOT contain a description of the comment lexing. So maybe it does not need a description in the language definition of SDL. Eric Jesse Weaver <pianohacker at gmail.com> wrote: An early version of the grammar <http://www.ikayzo.org/confluence/display/SDL/ABNF+Grammar> is up, supporting everything but multiline comments. Any ideas on how we could add these? -- 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 _______________________________________________ Sdl-developers mailing list Sdl-developers at ikayzo.org http://ml.ikayzo.org/mailman/listinfo/sdl-developers "Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." -- B. Franklin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20070107/5504a0b0/attachment.html
- Previous message: [Sdl-developers] ABNF Grammar
- Next message: [Sdl-developers] ABNF Grammar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










