← Prev in month ← Prev in thread

From grammar based file to xml file

From
Conchi Labra <>
To
Date
2003-04-18T23:44:26Z
ID
<>
Thread
From grammar based file to xml file
Hi,

I have a bunch of program config files with sentences based on a 
grammar. The files and the grammar were written to be used with the yacc 
parser. Now I have to port the code from c to python, so I'd like to 
rewrite these config files as xml to parse them with xml python standard 
tools.

The usual approach to do that is write a parser that map a sentence to a 
xml element using DOM to generate the XML output.

I wonder if there is a generic parser out there capable of, given a 
grammar and a file based on this grammar, generate the xml equivalent of 
the file for whatever file and grammar. I think it is theoretically 
possible.

Somebody knows from such generic parser?

Thanks in advance

------------
Conchi Labra
← Prev in month ← Prev in thread