Home | Trees | Index | Help |
|
---|
Module bison |
|
Wrapper module for interfacing with Bison (yacc)
Written April 2004 by David McNab <david@freenet.org.nz> Copyright (c) 2004 by David McNab, all rights reserved.
Released under the GNU General Public License, a copy of which should appear in this distribution in the file called 'COPYING'. If this file is missing, then you can obtain a copy of the GPL license document from the GNU website at http://www.gnu.org.
This software is released with no warranty whatsoever. Use it at your own risk.
If you wish to use this software in a commercial application, and wish to depart from the GPL licensing requirements, please contact the author and apply for a commercial license.Classes | |
---|---|
BisonError |
Flags an error to yyparse() |
BisonNode |
Generic class for wrapping parse targets. |
BisonParser |
Base parser class |
Exceptions | |
---|---|
ParserSyntaxError |
Function Summary | |
---|---|
Rips the rules, tokens and precedences from a bison file, and the verbatim text from a lex file and generates a boilerplate python file containing a Parser class with handler methods and grammar attributes |
Variable Summary | |
---|---|
SRE_Pattern |
reSpaces = \s+
|
Function Details |
---|
bisonToPython(bisonfileName, lexfileName, pyfileName, generateClasses=0)Rips the rules, tokens and precedences from a bison file, and the verbatim text from a lex file and generates a boilerplate python file containing a Parser class with handler methods and grammar attributes Arguments:
|
Variable Details |
---|
reSpaces
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sun Jun 27 12:36:56 2004 | http://epydoc.sf.net |