Added a grammar param to the parser.

This commit is contained in:
Dave Halter committed 2014-11-24 01:10:39 +01:00
1 parent c152a1c58b
commit 9f45f18ad1
14 files changed
+60 -44

No files matched your search

+2 -1
View File
@@ -91,7 +91,8 @@ from jedi.evaluate.helpers import FakeStatement, deep_ast_copy, call_of_name
class Evaluator(object):
def __init__(self):
def __init__(self, grammar):
self._grammar = grammar
self.memoize_cache = {} # for memoize decorators
self.import_cache = {} # like `sys.modules`.
self.compiled_cache = {} # see `compiled.create()`