Brent Yates wrote:
Assuming a standard LINE comment form such as:Brent, Rather than play with the rules, what I always do is allocate one more byte than required for the input file, then either check the last character of the file and add a '\n', or just add a '\n' anyway if there is no possibility that this changes the input incorrectly. Basically UNIX has it right - text files end in '\n'!! ;-) 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
