[antlr-interest] Multiple Occurrence Read Out

Philip Mötteli philip.moetteli at tele2.ch
Fri May 6 08:19:06 PDT 2011


Hi,


I have a parser rule, that parses a kind of a property list:

	keysAndValues	:	('"' key '"' value)*
						{	// Some code to read the key(s) and value(s) out.
							// Is this part called for every occurrence of "*" or only once at the end?
						}
					;


I would like to add every key and its property to a dictionary in my program. How can I read those values out?


Thanks



More information about the antlr-interest mailing list