[antlr-interest] (no subject)
Mark Darnell
darnellm at bit-sys.com
Wed Nov 12 10:41:06 PST 2008
I have a requirement to parse a text report in the following format:
SUBJ: <<report subject>>
A. <<report_type>>/YY/NNNNN/NNNN
B. YYMMDD/HHMM:SS
C. <<field1>>/<<field2>>
D. <<line#>>/<<field3>>/<<field4>>/<<field5>>/<<field6>>
<<line#>>/<<field3>>/<<field4>>/<<field5>>/<<field6>>
<<some text would go here>>
E. <<some text would go here>>
I was wondering if ANTLR would be a help in parsing this type of text
file. I need to get the items marked as fields into an XML file that is
later parsed by another system.
If ANTLR is a good fit, could you point me to some examples of writing a
grammar for text file parsing?
Mark Darnell
BIT Systems, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081112/dd362831/attachment.html
More information about the antlr-interest
mailing list