[antlr-interest] Multiple Occurrence Read Out

Philip Mötteli philip.moetteli at tele2.ch
Fri May 6 11:41:45 PDT 2011


Am 06.05.2011 um 17:40 schrieb Bart Kiers:

> Only at the end. You need to place the code-block inside the parenthesis like this:
> 
> keysAndValues
>   :  ('"' key '"' value
>        {
>          // Some code to read the key(s) and value(s) out.
>          System.out.println("key=" + $key.text + ", value=" + $value.text);
>        }
>      )*
>   ;

Ah, cool, thanks.




More information about the antlr-interest mailing list