[antlr-interest] Use of multimap in grammar file.

Alfredo Perez J. xentastic at gmail.com
Wed Jan 26 08:13:41 PST 2011


Hello.

I am trying to make a not too complicated translator using ANTLR. From the
approach I'm taking it's convenient for me to use Multimaps.
However I'm having problmes initializing the map, I have something likes
this:

model
scope{
   Multimap <Integer, String> CMap;
   Multimap <Integer, String> UMap;
;

}

@init {
  $model::UMap = HashMultimap.create();
  $model::CMap = HashMultimap.create();

}

: RULES

;


More information about the antlr-interest mailing list