def _tgrep_node_literal_value(node):
 return (node.label() if _istree(node) else text_type(node))

def _tgrep_node_literal_value ( node ) : return ( node . label ( ) if _istree ( node ) else text_type ( node ) )
gets the string value of a given parse tree node .