Am Freitag, den 28.01.2011, 02:51 -0500 schrieb Robert J. Hansen: > ... Now, consider the derivation of the line: > > Comment: NOCHandle John Q. Hacker > > ... starting from rule asline. asline derives out to 'Comment:' on the > left, words on the right, and from there straight to NoViableAltException. > > However, if I change it to: > > Comment: NCHandle John Q. Hacker > > ... then it derives successfully.
It seems to me that the parser recognizes the anonymous tokens although at this position in the file they are valid non-keywords. Somehow the solution must be to allow keywords in other positions of the language, although I cannot tell how the solution would look like. Hiran 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.
