parameters: (content)
return_statement: return root
docstring: Convert the nested parenthesis output from pdflatex to a tree structure.
docstring_summary: Convert the nested parenthesis output from pdflatex to a tree structure.
docstring_tokens: Convert the nested parenthesis output from pdflatex to a tree structure .
function: def parseOutput(content):
          """Convert the nested parenthesis output from pdflatex to a tree structure."""
          root = moosetree.Node(None, 'root', content='', filename='', warnings=[])
          node = root
          for char in content:
              if char == '(':
                  node = moosetree.Node(node, 'paren', content='', filename='', warnings=[])
              elif char == ')':
                  node = node.parent
              else:
                  node['content'] += str(char)
          return root
function_tokens: def parseOutput ( content ) : root = moosetree . Node ( None , 'root' , content = '' , filename = '' , warnings = [ ] ) node = root for char in content : if char == '(' : node = moosetree . Node ( node , 'paren' , content = '' , filename = '' , warnings = [ ] ) elif char == ')' : node = node . parent else : node [ 'content' ] += str ( char ) return root