Esempio n. 1
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchKey(self.key, s2)
Esempio n. 2
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchIndice(self.idx, s2)
Esempio n. 3
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchHook(self.call, s2)
Esempio n. 4
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Esempio n. 5
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchValue(self.v, s2)
Esempio 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)
Esempio n. 7
0
File: match.py Progetto: 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)
Esempio n. 8
0
File: match.py Progetto: 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)
Esempio 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)
Esempio n. 10
0
File: match.py Progetto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchKey(self.key, s2)
Esempio n. 11
0
File: match.py Progetto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchIndice(self.idx, s2)
Esempio n. 12
0
File: match.py Progetto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchHook(self.call, s2)
Esempio n. 13
0
File: match.py Progetto: 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)
Esempio n. 14
0
File: match.py Progetto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Esempio n. 15
0
File: match.py Progetto: vhb/pyrser
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchValue(self.v, s2)
Esempio n. 16
0
File: match.py Progetto: 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)