dcsimg
Is ANTLR the right tool to parse text files with fixed structure?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alberto_Brosich
Posted On:   Wednesday, September 10, 2008 02:37 PM

I have to parse text files that have a fixed structure. The file is composed by sections and most part of fields are in a fixed position (starting at character N with length L in row M) inside a section with a fixed label in some cases. The result of the parse should be an XML doc or a memory objects tree. Reading the documentation seems to me ANTLR is not able to deal with this kind of problems, but I am not an expert about these topics. Any suggest? Are there other tools more suitable? Thanks Alberto    More>>

I have to parse text files that have a fixed structure.


The file is composed by sections and most part of fields are in a fixed position (starting at character N with length L in row M) inside a section with a fixed label in some cases.

The result of the parse should be an XML doc or a memory objects tree.


Reading the documentation seems to me ANTLR is not able to deal with this kind of problems, but I am not an expert about these topics.


Any suggest?


Are there other tools more suitable?


Thanks


Alberto

   <<Less
About | Sitemap | Contact