flowrep.parsers.for_parser module

flowrep.parsers.for_parser.AccumulatorMap

Maps accumulator names, xs, to appended symbol names, x, in statements like xs.append(x)

alias of dict[str, str]

flowrep.parsers.for_parser.parse_for_node(walker: BodyWalker, tree: For) ForEachRecipe[source]

Walk a for-loop.

Parameters:
  • walker – A walker to fork and use for collecting state inside the tree.

  • tree – The top-level ast.For node (may contain immediately nested for-headers that declare additional iteration axes).