Thread Previous • Date Previous • Date Next • Thread Next |
Hi, Tim:The following link is the more comprehensive that I found so far, about "Python parsing": http://nedbatchelder.com/text/python-parsers.html . In fact, there are so many alternatives that's somewhat difficult to pick one... Berkeley YACC, ANTLR etc are good, but not exactly what we want: they generate Python code, but only _parsing_ code.
My suggestion? As we already have some work done in pyparsing, there is e.g.: yeanpypa -- YEt ANother PYthon PArser (http://www.slash-me.net/dev/snippets/yeanpypa/documentation.html), inspired by pyparsing (and spirit), which follows the EBNF (http://en.wikipedia.org/wiki/Ebnf) standard. It's even simpler to work with than pyparsing. But doesn't generate Python code at all...
Roberto. Tim Cook a écrit :
[...] We will certainly need a new parser even for ADL. I like pyparsing because it is simple to use; in relative terms. However, I would rather see someone exploring using the ADL grammar in a more conventional lexx/yacc approach. Volunteers? [...]
Thread Previous • Date Previous • Date Next • Thread Next |