package acgtk

  1. Overview
  2. Docs

Module TreeContext.TreeContextSource

The module for tree contexts

Sourcetype 'a t =
  1. | Top
  2. | Zipper of 'a * 'a Tree.tree ListContext.focused_list * 'a t
    (*

    The type of the context. Top is the empty context

    *)
Sourcetype 'a focused_tree = 'a t * 'a Tree.tree

The type for focused trees (i.e., trees with their context

up (z,t) moves up in the context z of t and returns the new focused tree (z',t')