src/Pure/PIDE/document.ML
author haftmann
Tue, 10 Aug 2010 14:53:41 +0200
changeset 38312 9dd57db3c0f2
parent 38150 67fc24df3721
child 38355 8cb265fb12fe
permissions -rw-r--r--
moved extra_tfrees check for mixfix syntax to Generic_Target

(*  Title:      Pure/PIDE/document.ML
    Author:     Makarius

Document as collection of named nodes, each consisting of an editable
list of commands.
*)

signature DOCUMENT =
sig
  type state_id = string
  type command_id = string
  type version_id = string
  val no_id: string
  type edit = string * ((command_id * command_id option) list) option
end;

structure Document: DOCUMENT =
struct

(* unique identifiers *)

type state_id = string;
type command_id = string;
type version_id = string;

val no_id = "";


(* edits *)

type edit =
  string *  (*node name*)
  ((command_id * command_id option) list) option;  (*NONE: remove, SOME: insert/remove commands*)

end;