I keep coming across a pattern in a grammar I'm working on. This pattern looks something like this:
- A production can be *A*. - A production can be *B*. - A production can be *A B.* In the grammar I'm transcribing this from, the notation used is *(A & B)*. Is there some convenient way to code that in ANTLR's EBNF notation? I keep having to do *(A | B | A B)*. As is that isn't all that onerous as-is, I admit, but imagine if A is five tokens long and B is also five tokens long and then imagine this kind of pattern happening about twenty times in the grammar. Is there a way to concisely do this? 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.
