Greetings!

On Thu, 2011-03-24 at 17:22 +0100, wael sellami wrote:
> Hello,

...stuff snipped...

> book : ^(BOOKDEF name (xmltag)+)
> {
> System.out.println("Begin book tag");
> System.out.println("END book tag");
> };
> 

...snipped...

short answer, place actions properly:

book : ^(BOOKDEF name
      { System.out.println("Begin book tag"); }
    (xmltag)+
      { System.out.println("END book tag"); }
  ) ;

preferred answer, use StringTemplate to compose your output.

hope this helps...
   -jbb



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.

Reply via email to