def _parse_var(self, element):
syntax = '<STR_LIT>' if element.get('<STR_LIT:name>') else '<STR_LIT>'<EOL>var_type = attribute(element, '<STR_LIT:type>', '<STR_LIT:user>')<EOL>if syntax == '<STR_LIT>':<EOL><INDENT>var_name  = attribute(element, '<STR_LIT:name>')<EOL>var_value   = self.agentml.parse_tags(element, self.trigger) if len(element) else element.text<EOL><DEDENT>else:<EOL><INDENT>name_etree = element.find('<STR_LIT:name>')<EOL>var_name   = self.agentml.parse_tags(name_etree, self.trigger) if len(name_etree) else name_etree.text<EOL>value_etree = element.find('<STR_LIT:value>')<EOL>var_value = self.agentml.parse_tags(value_etree, self.trigger) if len(value_etree) else value_etree.text<EOL><DEDENT>self.vars.append((var_type, var_name, var_value))<EOL>
Parse a variable assignment
:param element: The XML Element object
:type  element: etree._Element