def applies(self, element:Element):
     #  p [ + ] n
     return (is_identifier(element.code) and
             identifier_in(element.code, self.sym_vals) and
             not element.is_first() and
             not element.is_last() and
             not is_form(element.parent, self.head_symbol_name))
 def applies(self, element:Element):
     return (
         is_identifier(element.code) and
         identifier_in(element.code, self.sym_vals) and
         not is_head(element) and
         not element.is_last()
     )
 def applies(self, element: Element):
     return (is_identifier(element.code)
             and identifier_in(element.code, self.sym_vals)
             and not element.is_first() and not element.is_last())
 def applies(self, element:Element):
     #  p [ + ] n
     return (is_identifier(element.code) and
             identifier_in(element.code, self.sym_vals) and
             not element.is_first() and
             not element.is_last())
Esempio n. 5
0
 def applies(self, element: Element):
     #  p [ + ] n
     return (is_identifier(element.code)
             and identifier_in(element.code, self.sym_vals)
             and not element.is_first() and not element.is_last()
             and not is_form(element.parent, self.head_symbol_name))