FAUST compiler  0.9.9.6b8
Functions
labels.hh File Reference
#include "tlib.hh"
#include "boxes.hh"
#include "signals.hh"
Include dependency graph for labels.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Tree normalizePath (Tree path)
 

Function Documentation

Tree normalizePath ( Tree  path)

Definition at line 133 of file labels.cpp.

References hd(), isNil(), normalizeLabel(), normalizePath(), and tl().

Referenced by normalizePath(), and realPropagate().

134 {
135  //cout << "Normalize Path [[" << *path << "]]" << endl;
136  Tree npath;
137  if (isNil(path)) {
138  npath = path;
139  } else {
140  npath = normalizeLabel(hd(path), normalizePath(tl(path)));
141  }
142  //cout << " -> [[" << *npath << "]]" << endl;
143  return npath;
144 }
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Definition: tree.hh:109
Tree hd(Tree l)
Definition: list.hh:133
bool isNil(Tree l)
Definition: list.hh:137
static Tree normalizeLabel(Tree label, Tree path)
Definition: labels.cpp:120
Tree normalizePath(Tree path)
Definition: labels.cpp:133
Tree tl(Tree l)
Definition: list.hh:134

Here is the call graph for this function:

Here is the caller graph for this function: