Re: Parser suggestion

2005-10-11 Thread [EMAIL PROTECTED]
Take a look at PLY. There is an example lexer in the download for parsing fortran. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser suggestion

2005-09-30 Thread François Pinard
[Jorge Godoy] You're someone [...] You make me shy! :-) Nevertheless, thanks for the appreciation! :-) It looks like it stopped being developed circa 2002... How can I be sure that if I find a bug I'll be able to discuss it with the developer if it's 3 years since the last release of

Parser suggestion

2005-09-29 Thread Jorge Godoy
Hi! I'm needing a parser to retrieve some information from source code -- including parts of code -- from Fortran, to use in a project with a documentation system. Any recommendations on a Python app or parser that I could use for that? Thanks, -- Jorge Godoy [EMAIL PROTECTED] --

Re: Parser suggestion

2005-09-29 Thread Michael J. Fromberger
In article [EMAIL PROTECTED], Jorge Godoy [EMAIL PROTECTED] wrote: I'm needing a parser to retrieve some information from source code -- including parts of code -- from Fortran, to use in a project with a documentation system. Any recommendations on a Python app or parser that I could use

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
Michael J. Fromberger [EMAIL PROTECTED] writes: There seems to be a great diversity of parsing tools available for Python programmers. Here are a few suggestions to get you started: From Google I found almost all of those. But do you have any suggestion on which one would be better to parse

Re: Parser suggestion

2005-09-29 Thread Steven Bethard
Jorge Godoy wrote: From Google I found almost all of those. But do you have any suggestion on which one would be better to parse Fortran code? Or more productive to use for this task? [snip] PyParsing http://pyparsing.sourceforge.net/ Well, I've never had to parse Fortan code, but

Re: Parser suggestion

2005-09-29 Thread Robert Kern
Jorge Godoy wrote: Hi! I'm needing a parser to retrieve some information from source code -- including parts of code -- from Fortran, to use in a project with a documentation system. http://svn.scipy.org/svn/scipy_core/branches/newcore/scipy/f2py2e/crackfortran.py -- Robert Kern [EMAIL

Re: Parser suggestion

2005-09-29 Thread François Pinard
[Jorge Godoy] SPARK (Scanning Parsing And Rewriting Kit) http://pages.cpsc.ucalgary.ca/~aycock/spark/ It looks like it stopped being developed circa 2002... From 2002 to now Python had a lot of improvements and I'd rather use a maintained tool for this project. At least one that keeps

Re: Parser suggestion

2005-09-29 Thread MrJean1
My recommendation for a project like this would be SimpleParse http://simpleparse.sourceforge.net Some examples are here http://simpleparse.sourceforge.net/simpleparse_grammars.html and http://www-128.ibm.com/developerworks/linux/library/l-simple.html /Jean Brouwers --

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
Steven Bethard [EMAIL PROTECTED] writes: Jorge Godoy wrote: From Google I found almost all of those. But do you have any suggestion on which one would be better to parse Fortran code? Or more productive to use for this task? [snip] PyParsing http://pyparsing.sourceforge.net/

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
François Pinard [EMAIL PROTECTED] writes: [Jorge Godoy] SPARK (Scanning Parsing And Rewriting Kit) http://pages.cpsc.ucalgary.ca/~aycock/spark/ It looks like it stopped being developed circa 2002... From 2002 to now Python had a lot of improvements and I'd rather use a