示例#1
0
 def __init__(self, matcher, curtail):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self._karg(curtail=curtail)
     self.__depth = {}  # s_key(stream) -> [depth]
     self.__table = {}  # (s_key(stream), depth) -> [table, generator]
     self.__state = State.singleton()
示例#2
0
文件: memo.py 项目: cajus/python-lepl
 def __init__(self, matcher, curtail):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self._karg(curtail=curtail)
     self.__depth = {} # s_key(stream) -> [depth] 
     self.__table = {} # (s_key(stream), depth) -> [table, generator] 
     self.__state = State.singleton()
示例#3
0
 def __init__(self, start=0):
     '''
     start is the initial indent (in spaces).
     '''
     super(BlockMonitor, self).__init__()
     self.__stack = [start]
     self.__state = State.singleton()
示例#4
0
 def __init__(self, start=0):
     '''
     start is the initial indent (in spaces).
     '''
     super(BlockMonitor, self).__init__()
     self.__stack = [start]
     self.__state = State.singleton()
示例#5
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}
     self.__state = State.singleton()
示例#6
0
 def __init__(self, matcher):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__caches = {}
     self.__state = State.singleton()
示例#7
0
文件: memo.py 项目: cajus/python-lepl
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {} # s_key(stream) -> [lock, table, generator] 
     self.__state = State.singleton()
示例#8
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}  # s_key(stream) -> [lock, table, generator]
     self.__state = State.singleton()
示例#9
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}
     self.__state = State.singleton()
示例#10
0
 def __init__(self, matcher):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__caches = {}
     self.__state = State.singleton()