Wisent

A Python LR(1) parser generator.

Introduction

When writing a computer program, implementing methods to read data from input files with a complex structure can be surprisingly difficult. For example, if the input data comes from an untrusted source, errors in the input file often need to be dealt with very carefully. If your program is written in Python and if the input data is sufficiently structured (i.e., if the format can be described by a context free grammar), Wisent can help you to implement parts of the input processing of your program.

cave painting of a wisent

A cave painting from the cave of Altamira, showing a wisent. The photo was taken from the Wikimedia Commons and is in the public domain.

Features

The parser generator has the following features:

The generated parsers have the following features:

More information can be found in the Wisent Users’ Manual.

About the name

I called the program “Wisent” because the first parser generator I encountered was Bison and the Wisent is the European variant of the Bison. Unfortunately, I learned later that there are at least two other parser generators which use the name “Wisent”:

Installation

The source code for more recent, experimental versions of wisent may (or may not) be available on github.com/seehuhn/wisent.

Generic installation instructions are in the file INSTALL. On most systems, the following commands should be sufficient:

./configure
make
make install

Alternatively you can omit the make install and run Wisent directly in the build directory.

Please send any suggestions and bug reports to Jochen Voss. Your message should include the Wisent version number, as obtained by the command wisent -V.

References

Downloads

Version Date Download Notes
0.6.2 2012-04-10 tar.gz (1.0 MB), sig,
sha188560d57326d8796f468173c9d4c9f1da304ed36
0.6.1 2010-09-16 tar.gz (1.0 MB), sig,
sha1288b7e7efe7508c44d0593c7fb07583307e20d99
bug fix release