Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Grammar parsing

4 views
Skip to first unread message

Paolo Pantaleo

unread,
Aug 3, 2006, 5:14:06 AM8/3/06
to pytho...@python.org
Hi,

How can I write a pareser for a certain gramamr? I found PyPy that
does it, is thare any other tool? Maybe something built-in the python
interpreter?

Thnx
PAolo

--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr

Gregor Horvath

unread,
Aug 3, 2006, 5:22:48 AM8/3/06
to
Paolo Pantaleo schrieb:

> How can I write a pareser for a certain gramamr? I found PyPy that
> does it, is thare any other tool? Maybe something built-in the python
> interpreter?
>

http://pyparsing.wikispaces.com/

--
Servus, Gregor
http://www.gregor-horvath.com

Ben Finney

unread,
Aug 3, 2006, 6:29:44 AM8/3/06
to pytho...@python.org
"Paolo Pantaleo" <paolop...@gmail.com> writes:

> How can I write a pareser for a certain gramamr? I found PyPy that
> does it, is thare any other tool? Maybe something built-in the
> python interpreter?

The standard library gets you partway there, with 'shlex':

<URL:http://docs.python.org/lib/module-shlex.html>

The cheeseshop knows of 'pyparsing':

<URL:http://cheeseshop.python.org/pypi/pyparsing/>

--
\ "It may be that our role on this planet is not to worship God |
`\ -- but to create him." -- Arthur C. Clarke |
_o__) |
Ben Finney

Nicola Musatti

unread,
Aug 3, 2006, 9:06:58 AM8/3/06
to

Paolo Pantaleo wrote:
> Hi,
>
> How can I write a pareser for a certain gramamr? I found PyPy that
> does it, is thare any other tool? Maybe something built-in the python
> interpreter?

Check out Dave Beazley's Ply: http://www.dabeaz.com/ply/ .

Cheers,
Nicola Musatti

Paolo Pantaleo

unread,
Aug 3, 2006, 10:09:55 AM8/3/06
to pytho...@python.org
2006/8/3, Ben Finney <bignose+h...@benfinney.id.au>:

> "Paolo Pantaleo" <paolop...@gmail.com> writes:
>
> > How can I write a pareser for a certain gramamr? I found PyPy that
> > does it, is thare any other tool? Maybe something built-in the
> > python interpreter?
>
> The standard library gets you partway there, with 'shlex':
>
> <URL:http://docs.python.org/lib/module-shlex.html>
>
> The cheeseshop knows of 'pyparsing':
>
> <URL:http://cheeseshop.python.org/pypi/pyparsing/>
>


Thnx everybody for the help,

I finished using pyparsing actually, that is very handy and nice to use.

0 new messages