Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
DFAParser.py - Implements the Python parsing algorithm.

I am going to try to keep this simple, and see if I can't get a Python to C
translator to optimize the heck out of it after this is all done.

Grammar := ( [ DFA ], [ Label ], Start : Int , Accel : Int )
DFA := ( Type : Int, Name : String, Initial : Int, [ State ], First : String )
State := ( [ Arc ], Accel, Accept : Int )
Arc := ( Label : Int, StateIndex )
Accel := ( Upper : Int, Lower : Int, [ Int ] )(more...)

src/m/y/mython-HEAD/basil/common/python/PyPgen.py   mython(Download)
def main ():
    import sys, PgenParser, pprint, DFAParser
    # ____________________________________________________________
    # Generate a test parser
    grammarST = PgenParser.parseFile("Grammar")

src/m/y/mython-HEAD/basil/common/python/pyparser.py   mython(Download)
 
import token, exceptions, compiler
import PyTokenizer, PyGrammar, DFAParser
 
# ______________________________________________________________________