'parseBinary' in Antlr examples folder might help you.
- Indhu ----- Original Message ----- From: [email protected] To: [email protected] Sent: Friday, January 23, 2009 1:51:23 AM GMT+0530 Asia/Calcutta Subject: [antlr-interest] Binary data I have data that is mixed text and binary, so it might have a text field followed by a binary encoded number--2 bytes or something. Is this something ANTLR can handle? How do I define binary tokens for the lexer? Is there something where I can tell it to read a certain number of bytes, or until a certain byte delimiter (that might be different than the overall encoding--so even if in 2 byte char stream, look for a single byte delimiter)? Thanks! List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address 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 -~----------~----~----~----~------~----~------~--~---
