Exemplo n.º 1
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchKey(self.key, s2)
Exemplo n.º 2
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchIndice(self.idx, s2)
Exemplo n.º 3
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchHook(self.call, s2)
Exemplo n.º 4
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Exemplo n.º 5
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchValue(self.v, s2)
Exemplo n.º 6
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     # TODO:!!! the event must be store in the LivingState
     s1.matchEvent(self.n, s2)
Exemplo n.º 7
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State, sr: state.StateRegister):
     if self.t is not object:
         if self.iskindof:
             s1.matchKindType(self.t, s2)
         else:
             s1.matchType(self.t, s2)
         # to avoid artefact, store the minimal subelement to match
         s1.minsubelmt = len(self.attrs)
Exemplo n.º 8
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     if self.t is not object:
         if self.iskindof:
             s1.matchKindType(self.t, s2)
         else:
             s1.matchType(self.t, s2)
         # to avoid artefact, store the minimal subelement to match
         s1.minsubelmt = len(self.attrs)
Exemplo n.º 9
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     if self.name is not None:
         s1.matchAttr(self.name, s2)
     else:
         s1.matchDefault(s2)
Exemplo n.º 10
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchKey(self.key, s2)
Exemplo n.º 11
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchIndice(self.idx, s2)
Exemplo n.º 12
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchHook(self.call, s2)
Exemplo n.º 13
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     # TODO:!!! the event must be store in the LivingState
     s1.matchEvent(self.n, s2)
Exemplo n.º 14
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Exemplo n.º 15
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchValue(self.v, s2)
Exemplo n.º 16
0
Arquivo: match.py Projeto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     if self.name is not None:
         s1.matchAttr(self.name, s2)
     else:
         s1.matchDefault(s2)