Am 12.01.2011 17:02, schrieb Alex Lujan: > I am trying Antlr v3 for message recognition, which must comply to a custom > define protocol. > > I find myself unable to express the following rule (written in a > non-standard notation): > > data: count number{count.value} >
just parse the lines as data: number+ { check(); } and then check in an action if the first number is correct. Michael 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.