Back to index

texmacs  1.0.7.15
Functions
tree_modify.hpp File Reference
#include "drd_std.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void correct_node (tree &t)
void correct_downwards (tree &t)
void correct_upwards (tree &t)

Function Documentation

void correct_downwards ( tree t)

Definition at line 71 of file tree_modify.cpp.

                            {
  if (is_compound (t))
    for (int i=0; i<N(t); i++)
      correct_downwards (t[i]);
  correct_node (t);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void correct_node ( tree t)

Definition at line 58 of file tree_modify.cpp.

                       {
  // NOTE: this routine should only modify t and its descendants,
  // but not any ancestors
  if (is_compound (t)) {
    if (the_drd->contains (as_string (L(t))) &&
       !the_drd->correct_arity (L(t), N(t)))
      assign (t, "");
    if (is_concat (t))
      correct_concat_node (t, 0);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void correct_upwards ( tree t)

Definition at line 79 of file tree_modify.cpp.

                          {
  correct_node (t);
  path ip= obtain_ip (t);
  if (ip_attached (ip) && !is_nil (ip))
    correct_upwards (subtree (the_et, reverse (ip->next)));
}

Here is the call graph for this function:

Here is the caller graph for this function: