If you have Haskell installed on your system, you can compile BNFC, a BNF to [something *] generator.
bnfc is a binary executable, I don't think it requires Haskell to run. * Including xml. http://www.cs.chalmers.se/~markus/BNFC/ HTH -- dda libcurl4RB, [S]FTP transfers made easy http://sungnyemun.org/?q=node/8 On 6/14/06, John Balestrieri <[EMAIL PROTECTED]> wrote:
Hello, Does anyone know of an Rb project or unix command line tool that can take as input, a text file and a BNF or EBNF grammar file and produce a "structured" XML document of parse? I would like to then use XPath queries on the XML to pull out the data -- XPath makes this a more flexible/general approach than converting the parsed file to a hierarchy of Rb objects. I have Jon Johnson's Morphe project, but it does not produce XML, but I'm looking for something production ready. I am going to be using this parsing component very shortly and don't have the time budget to implement & test the modifications I'd have to make his code (which I'm sure is very robust) -- I'm just looking for something that is ready-to-go. An example of the BNF I'd be working with is on this page: <http:// www.w3.org/TR/SVG/paths.html> Any suggestions would be appreciated. :) Thanks, John
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
