chain one wrote:
I want to only parse the beginning of a file. And I don't want the recognizer to beak the whole file into huge number of tokens which will make the memory consuming very high.If the trigger point is as simple as this, then why not just: SEMI : ';' .* ; Remember that the text is not copied into the token, it is just a pointer to the start and end of the text and so does not take up any memory. Jim
--~--~---------~--~----~------------~-------~--~----~ 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
