[antlr-interest] How to deal with this kind of situation?

Felix.徐 ygnhzeus at gmail.com
Mon Jun 4 05:14:16 PDT 2012


Hi,all, here is the gramma:

columnName (',' columnName)* -> ^(SM_TOK columnName)

I want the output ast of "A,B" to have multiple SM_TOK , like : (SM_TOK A)
(SM_TOK B)

But,currently,I only have: (SM_TOK A)

It seems that 'B' will be ignored.

Can anyone help me to fix this gramma?


More information about the antlr-interest mailing list