Back to index

python3.2  3.2.2
Classes | Functions
lib2to3.pgen2.pgen Namespace Reference

Classes

class  PgenGrammar
class  ParserGenerator
class  NFAState
class  DFAState

Functions

def generate_grammar

Function Documentation

def lib2to3.pgen2.pgen.generate_grammar (   filename = "Grammar.txt")

Definition at line 384 of file pgen.py.

00384 
00385 def generate_grammar(filename="Grammar.txt"):
00386     p = ParserGenerator(filename)
00387     return p.make_grammar()