Hello all, Looking for information about best practice, performance and reasoning with respect to using literals in the parser verses using tokens in the parser. For example, if you know you will have a phrase of the language you are trying to parse begin with 'CONTENT/', which is better:
Variation A: r : 'CONTENT/' <rest> ; Variation B: r : CONTENT_TOK <rest> ; CONTENT_TOK : 'CONTENT/' ; Matching the literal in the parser rule, or creating a TOKEN in the lexer and matching the token in the parser? Thanks in advance for you feedback. Greg --~--~---------~--~----~------------~-------~--~----~ 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
