Sorry to bother you again. Another question indicating a complete lack of understanding of the basic Antlr mechanism. Matlab over-uses the token END and I am trying to distinguish two uses based on the token that follows END. If it is followed by COMMA, COLON, CLOSEP or SEMI, it is used in an indexing context. Otherwise, it's the normal usage. So this rule:
endIndex: END (COMMA | COLON | CLOSEP | SEMI) => END; seems to work except that it consumes the following token. How do I express this rule in such a way that the following token is not consumed? DMS David M. Smith http://www.cc.gatech.edu/fac/David.Smith Georgia Institute of Technology, College of Computing Sent from my ASR-33 Teletype 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.
