Hi,
I'm trying to determine if db is present.
I have not figured out how to do this.
The java exmple in the book (like I have below) says missing an attribute.
I tired text and it faults (start is invalid).

Some body please help.

thanks

Jeffrey



// DROP TABLE
drop_table_stmt
    : ^(DROP_TABLE ^(OPTIONS EXISTS?) ^(table = id db = id?))

        {
                if ($db == 0) {
                        sprintf(buffer, "Walker: Drop Table (table name: \%s",
                                                         $table.text->chars);
                        }                                                       
 
                        else {                                          
                        sprintf(buffer, "Walker: Drop Table (table name: \%s db 
name: \%s",
                                                         $table.text->chars, 
$db.text->chars);
                }
            debug(buffer);
        }    
    ;

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