1
0
forked from VimPlug/jedi

Start moving stuff to the parser.

This commit is contained in:
Dave Halter
2017-03-18 15:01:34 +01:00
parent 52d855118a
commit dad40597c5
2 changed files with 11 additions and 7 deletions

View File

@@ -27,3 +27,11 @@ class ParserSyntaxError(Exception):
self.position = position
class Parser(object):
AST_MAPPING = {}
def __init__(self, grammar, tokens, start_symbol='file_input'):
self._grammar = grammar
self._start_symbol = start_symbol
self._parsed = None