Commit a102f9d9 by Steven Bird

Changed Grammar to cfg.Grammar

svn/trunk@4663
parent 05e40803
...@@ -632,11 +632,11 @@ class GrammarFile(object): ...@@ -632,11 +632,11 @@ class GrammarFile(object):
self.kimmo = None self.kimmo = None
def grammar(self): def grammar(self):
return Grammar(self.start, self.grammatical_productions +\ return cfg.Grammar(self.start, self.grammatical_productions +\
self.lexical_productions) self.lexical_productions)
def earley_grammar(self): def earley_grammar(self):
return Grammar(self.start, self.grammatical_productions) return cfg.Grammar(self.start, self.grammatical_productions)
def earley_lexicon(self): def earley_lexicon(self):
lexicon = {} lexicon = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment