コード例 #1
0
ファイル: AlternativesMatch.py プロジェクト: goc9000/baon
 def __init__(self, *alternatives):
     Match.__init__(self)
     self.alternatives = list(alternatives)
コード例 #2
0
ファイル: BetweenMatch.py プロジェクト: goc9000/baon
 def __init__(self):
     Match.__init__(self)
コード例 #3
0
ファイル: RepeatMatch.py プロジェクト: goc9000/baon
 def __init__(self, match, at_least, at_most):
     Match.__init__(self)
     
     self.match = match
     self.at_least = at_least
     self.at_most = at_most
コード例 #4
0
ファイル: MatchWithActions.py プロジェクト: goc9000/baon
 def __init__(self, core_match, *actions):
     Match.__init__(self)
     self.core_match = core_match
     self.actions = list(actions)
コード例 #5
0
ファイル: SequenceMatch.py プロジェクト: goc9000/baon
 def __init__(self, *terms):
     Match.__init__(self)
     self.terms = list(terms)