Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Raspberry Pi benchmarked against Beagleboard, low price is long term

20 popular Ubuntu Linux apps you may want to try

A Selection of the Very Best Open Source Tutorials and Tools

Android Ice Cream Sandwich ported to x86 tablets, netbooks and notebooks

SECURITY: Google Chrome 17 Improves Security

How to read a CSV file in Perl?

Red Hat Brings Gluster to Amazon Cloud

New Linux kernel fixes power-saving issues

Using Wii remote with Android Device- Taking Gaming to the Next Level

Commercial Support now available for the open-source NGINX Web server



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:developerWorks: A Look at DParser for Python
developerWorks: A Look at DParser for Python
Aug 12, 2004, 05 :30 UTC (0 Talkback[s]) (6284 reads)

(Other stories by David Mertz)

"There are many Python parser libraries available. I have discussed mx.TextTools, SimpleParse, and SPARK in this column and covered PLY in my book (see Resources for links to these documents). Offhand, I know of PyGgy, Yapps, PLEX, PyLR, PyParsing, and TPG, and I have vague recollections of reading announcements of a half dozen others. This is a category where users might be frustrated, not by the dearth, but by the glut of high quality libraries.

"What distinguishes DParser from all the others? Well, like PLY and Spark, DParser for Python utilizes function documentation strings to indicate its productions. This style lets you put action code right inside a production for events that should occur when a particular grammar rule is fulfilled; the production-in-docstring style also lets you manipulate parse trees as parsing occurs. In contrast to PLY or Spark, DParser itself is written in C, and is thus likely to be considerably faster than pure-Python parsers. DParser for Python is a fairly thin wrapper around an underlying C library -- callbacks into Python take some extra time, but the basic parsing is at C speeds. For this article, however, I have not attempted any specific benchmarks. So exactly how fast or slow DParser is compared to other parsers is not something I can directly comment on..."

Complete Story

Related Stories:
developerWorks: Weave a Neural Net with Python(Jun 21, 2004)
CrossNodes: Scripting Clinic: Dissecting a Live Python... Script(May 28, 2004)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP