I've taken a tiny subset of a VHDL 2002 grammar I've been working on (and having problems with) to elicit some help. Please help me before I run out of hair.
I've attached the grammar description (bug.g) and a parse tree picture from AntlrWorks 1.3.1 the debugger trying to parse this, "blargh'(smile) * 97" starting at rule "expression." In my original grammar, the DFA at production name ignores certain input tokens and returns an exception. This grammar has an almost exact same problem although the DFA is different. In my original grammar, the "name" production seems to always ignore APOSTROPHE. In this example, the RIGHTPAREN after the "smile" is ignored. The same bug shows up in the Java and Python parsers so I must be doing something wrong. Ideas? k=1 Thanks ahead of time! -- 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.
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
<<attachment: bug.jpg>>
bug.g
Description: Binary data
