Lines Matching refs:wtree
338 def normalize_wordtree(wtree): argument
342 def normalize(wtree): argument
344 for part in wtree[1:-1]:
357 return [wtree[0]] + result + [wtree[-1]]
359 return normalize(wtree)
388 def wordtree_as_string(wtree): argument
398 visit(wtree, output)
402 def unquote_wordtree(wtree): argument
406 def unquote(wtree): argument
408 if wtree[0] in ('', "'", '"', '\\'):
409 wtree = wtree[1:-1]
411 for part in wtree:
417 return unquote(wtree)
688 wtree, remaining = self._wordlexer.add(input, eof)
690 self._token += wordtree_as_string(wtree)