src/Pure/PIDE/command_span.ML
author paulson <lp15@cam.ac.uk>
Wed, 18 Mar 2015 14:13:27 +0000
changeset 59741 5b762cd73a8e
parent 59689 7968c57ea240
child 68177 6e40f5d43936
permissions -rw-r--r--
Lots of new material on complex-valued functions. Modified simplification of (x/n)^k

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

Syntactic representation of command spans.
*)

signature COMMAND_SPAN =
sig
  datatype kind = Command_Span of string * Position.T | Ignored_Span | Malformed_Span
  datatype span = Span of kind * Token.T list
  val kind: span -> kind
  val content: span -> Token.T list
end;

structure Command_Span: COMMAND_SPAN =
struct

datatype kind = Command_Span of string * Position.T | Ignored_Span | Malformed_Span;
datatype span = Span of kind * Token.T list;

fun kind (Span (k, _)) = k;
fun content (Span (_, toks)) = toks;

end;