Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ANN: PyBison - high-performance Python Parser

Reply
Thread Tools

ANN: PyBison - high-performance Python Parser

 
 
David McNab
Guest
Posts: n/a
 
      04-23-2004
Hi,

Announcing PyBison, a framework for writing high-performance, full
LALR(1) parsers in Python, which automatically create and hook in to
Bison/Yacc-generated C parser code.

http://www.freenet.org.nz/python/pybison

Same genre as packages like PLY, YAPPS etc.

Users write a Parser class in Python. Upon instantiation of that class,
the parent class loads (or generates) a shared library file containing
the parser-specific C yyparse() code for the parser. The generation
process automatically introspects the user's class, extracting
grammar/lexer definitions from docstrings and attributes, creating .y
and .l files, compiling these and linking these to the shared lib. All
done automagically in the background.

At the price of depending on the presence of a C compiler/linker, Python
development libs/headers, Pyrex, plus bison and flex, PyBison delivers a
parser framework offering the ease and comfort of Python, with the raw
power and (most of) the speed of the raw C parser tools.

Release status: Alpha, version 0.1.1

Distribution includes examples, walkthrough document and API reference.

Bug reports, requests, patches etc, please send to me.

Enjoy

Cheers
David

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
distutils, PyBison and Mac OS X Maarten Sneep Python 0 04-18-2005 09:14 AM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments