Hi Edgar, Nice looking work on the grammar + railroad output page, as you showed here:
http://antlrv3ide.sourceforge.net/resources/ANTLRv3/ANTLRv3.html#block Now the challenge is to get the railroad diagrams to wrap :-). Anyhow, I spotted something that had me puzzled. In various rules the page referenced above seems to be using dot inside single quotes to mean "any character". I wonder whether this is an error, or is my understanding messed up? Example: ML_COMMENT ::= '/*' '.'* '*/' Wouldn't the single-quoted dot just match literal dots only? Or is dot special inside single-quote strings (ie: STRING_LITERAL)? But if that was the case, then shouldn't that special aspect of dot show up in the STRING_LITERAL grammar? Anyhow, I tried the above rule for ML_COMMENT in AntlrWorks and it only wanted to match comments that contained only dots. So my comment on all this is basically: /*.....................*/ :-) -- Graham List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
