On Sat, Oct 16, 2010 at 1:16 AM, Stephanie Balzer <
stephanie.bal...@gmail.com> wrote:

>
> ... What is the meaning of id+= above?
>
>
A java.util.List is defined at the start of the rule and
all Identifier-tokens are added to it.

        Token id=null;
        List list_id=null; *// <- !!!*

        try {
            // Test.g:17:3: (id+= Identifier ( ',' id+= Identifier )* )
            // Test.g:17:6: id+= Identifier ( ',' id+= Identifier )*
            {
            id=(Token)match(input,Identifier,FOLLOW_Identifier_in_ids80);
            if (list_id==null) list_id=new ArrayList();  *// <- !!!*
            list_id.add(id);  *// <- !!!*
            ...

Regards,

Bart.

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 il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to