I believe I found the cause of your problem. CREATE in CREATE OR REPLACE from the input is parsed as --> sqlplus_file paser rule --> create_object paser rule --> create_package_body paser rule --> CREATE paser rule --> CREATE : 'create' ; lexer rule
So 'CREATE' in the input is being matched against 'create' in the lexer rules which will always fail because upper case 'CREATE' is not lower case 'create'. Since the lexer has no other alternative, you get the error. Since I have no experience with ANTLR and case sensitive grammars, the only quick solution I can offer is obviously to make the input match the lexer, or make the lexer match the input. If you plan to tackle case sensitive parsing with ANTLR you may find the following helpful. You can search the mail for help using http://antlr.markmail.org/ or try Stack Overflow tags using ANTLR at http://stackoverflow.com/tags. The grammar does try and support case sensitive keywords, but how successful I can't say. Eric 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.
