OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   From grammar based file to xml file

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: From grammar based file to xml file
  • From: Conchi Labra <conchilabra@yahoo.es>
  • Date: Sat, 19 Apr 2003 01:44:26 +0200
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS