The interpreter is not using the fast parser anymore.

This commit is contained in:
Dave Halter
2015-02-05 00:27:37 +01:00
parent dce952aec6
commit 3a4235eb33
3 changed files with 18 additions and 6 deletions

View File

@@ -570,6 +570,13 @@ class Interpreter(Script):
super(Interpreter, self).__init__(source, **kwds)
self.namespaces = namespaces
# Don't use the fast parser, because it does crazy stuff that we don't
# need in our very simple and small code here (that is always
# changing).
self._parser = UserContextParser(self._grammar, self.source,
self._orig_path, self._pos,
self._user_context,
use_fast_parser=False)
interpreter.add_namespaces_to_parser(self._evaluator, namespaces,
self._parser.module())