[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

From grammar based file to xml file

  • To: xml-dev@l...
  • Subject: From grammar based file to xml file
  • From: Conchi Labra <conchilabra@y...>
  • 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

conchi labra
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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.