[antlr-interest] Counted Strings

Jim Idle jimi at temporal-wave.com
Mon Nov 7 10:12:12 PST 2011


I suggest that ANTLR is not the correct tool for parsing this type of
data. Use antlr.markmail.org and look at the recent discussions on parsing
binary data, which has similar properties.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Mark Woodworth
> Sent: Monday, November 07, 2011 10:06 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Counted Strings
>
> I am a beginner at Antlr, but I am very excited to use it to translate
> barcode label printer formats.
>
> Many of the label printer data formats include counted strings:  a
> field in the header of an input line gives the length of a following
> data field (which may contain the regular line separator characters as
> data.) This gives them a simple form of data transparency.
>
> Could someone point me in the direction of how to write a parsing rule
> for this situation?  My quick review of the Definitive Guide and the
> web site have missed it.
> Or is this not in the scope of LL(*) parsers? (That would be sad.)
>
> Thanks,
> Mark Woodworth
> mwoodworth at numinagroup.com
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list