At 08:25 17/03/2009, Reynold Xin wrote:
 >I am writing a shallow SQL select parser that should parse
 >
 >SELECT (eats everything until keyword LINK or semicolon) LINK 
...
 >
 >I have been reading the wiki and the Definitive ANTLR Reference
 >but still haven't got any clue how to do this. Can anyone shed 
some
 >light?

rule
   : SELECT (~(LINK | SEMI))* (LINK ...)? SEMI
   ;


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