@staticmethod<EOL><INDENT>def match(elem, seq_expr):<DEDENT>
if type(seq_expr) is str:  <EOL><INDENT>if seq_expr == '<STR_LIT:.>':  <EOL><INDENT>return True<EOL><DEDENT>elif seq_expr == '<STR_LIT>':<EOL><INDENT>return elem.is_numerical()<EOL><DEDENT>elif seq_expr == '<STR_LIT>':<EOL><INDENT>return not elem.is_numerical()<EOL><DEDENT>else:  <EOL><INDENT>raise LookupError('<STR_LIT>'.format(seq_expr))<EOL><DEDENT><DEDENT>else:  <EOL><INDENT>return elem == seq_expr<EOL><DEDENT>
Return True if elem (an element of elem_list) matches seq_expr, an element in self.sequence