Hi, I'm creating a parser for a SQL dialect (sue me :oP) and I'm facing a problem regarding the lexer generating the wrong kind of token in a certain context.
Basically I have defined two tokens called LEFT & RIGHT which are needed to parse SQL joins (left outer join, right outer join, etc...) LEFT : 'left' ; RIGHT : 'right' ; The problem occurs when I'm matching the SQL *functions* LEFT & RIGHT. LEFT (functionArgs) RIGHT (functionArgs) I want the function name to be an IDENTIFIER token but no can do due to the lexer... It gives me a LEFT or RIGHT token obviously :'o( What are the general recommendations you experienced ANTLR buffs can give me? The parser is generating an AST so I don't really care how it matches as long as I can keep my AST neat 'n tidy :o/ Thanks! Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
