src/Pure/General/markup.scala
author wenzelm
Sun, 28 Dec 2008 20:25:39 +0100
changeset 29185 26fcfca1db9d
parent 29184 85889d58b5da
child 29195 ea51797fa416
permissions -rw-r--r--
more markup elements;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27958
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     1
/*  Title:      Pure/General/markup.scala
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     3
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     4
Common markup elements.
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     5
*/
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     6
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     7
package isabelle
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     8
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
     9
object Markup {
27970
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    10
29184
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    11
  /* name */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    12
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    13
  val NAME = "name"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    14
  val KIND = "kind"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    15
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    16
27970
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    17
  /* position */
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    18
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    19
  val LINE = "line"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    20
  val COLUMN = "column"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    21
  val OFFSET = "offset"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    22
  val END_LINE = "end_line"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    23
  val END_COLUMN = "end_column"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    24
  val END_OFFSET = "end_offset"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    25
  val FILE = "file"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    26
  val ID = "id"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
    27
29184
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    28
  val POSITION = "position"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    29
  val LOCATION = "location"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    30
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    31
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    32
  /* logical entities */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    33
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    34
  val TCLASS = "tclass"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    35
  val TYCON = "tycon"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    36
  val FIXED_DECL = "fixed_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    37
  val FIXED = "fixed"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    38
  val CONST_DECL = "const_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    39
  val CONST = "const"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    40
  val FACT_DECL = "fact_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    41
  val FACT = "fact"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    42
  val DYNAMIC_FACT = "dynamic_fact"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    43
  val LOCAL_FACT_DECL = "local_fact_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    44
  val LOCAL_FACT = "local_fact"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    45
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    46
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    47
  /* inner syntax */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    48
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    49
  val TFREE = "tfree"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    50
  val TVAR = "tvar"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    51
  val FREE = "free"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    52
  val SKOLEM = "skolem"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    53
  val BOUND = "bound"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    54
  val VAR = "var"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    55
  val NUM = "num"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    56
  val FLOAT = "float"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    57
  val XNUM = "xnum"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    58
  val XSTR = "xstr"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    59
  val LITERAL = "literal"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    60
  val INNER_COMMENT = "inner_comment"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    61
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    62
  val SORT = "sort"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    63
  val TYP = "typ"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    64
  val TERM = "term"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    65
  val PROP = "prop"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    66
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    67
  val ATTRIBUTE = "attribute"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    68
  val METHOD = "method"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    69
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    70
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    71
  /* embedded source text */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    72
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    73
  val ML_SOURCE = "ML_source"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    74
  val DOC_SOURCE = "doc_source"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    75
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    76
  val ANTIQ = "antiq"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    77
  val ML_ANTIQ = "ML_antiq"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    78
  val DOC_ANTIQ = "doc_antiq"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    79
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    80
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    81
  /* outer syntax */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    82
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    83
  val KEYWORD_DECL = "keyword_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    84
  val COMMAND_DECL = "command_decl"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    85
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    86
  val KEYWORD = "keyword"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    87
  val COMMAND = "command"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    88
  val IDENT = "ident"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    89
  val STRING = "string"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    90
  val ALTSTRING = "altstring"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    91
  val VERBATIM = "verbatim"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    92
  val COMMENT = "comment"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    93
  val CONTROL = "control"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    94
  val MALFORMED = "malformed"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
    95
29185
26fcfca1db9d more markup elements;
wenzelm
parents: 29184
diff changeset
    96
  val COMMAND_SPAN = "command_span"
26fcfca1db9d more markup elements;
wenzelm
parents: 29184
diff changeset
    97
  val IGNORED_SPAN = "ignored_span"
26fcfca1db9d more markup elements;
wenzelm
parents: 29184
diff changeset
    98
  val MALFORMED_SPAN = "malformed_span"
26fcfca1db9d more markup elements;
wenzelm
parents: 29184
diff changeset
    99
29184
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   100
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   101
  /* toplevel */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   102
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   103
  val STATE = "state"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   104
  val SUBGOAL = "subgoal"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   105
  val SENDBACK = "sendback"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   106
  val HILITE = "hilite"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   107
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   108
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   109
  /* command status */
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   110
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   111
  val UNPROCESSED = "unprocessed"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   112
  val RUNNING = "running"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   113
  val FAILED = "failed"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   114
  val FINISHED = "finished"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   115
  val DISPOSED = "disposed"
85889d58b5da more markup elements;
wenzelm
parents: 29140
diff changeset
   116
27970
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   117
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   118
  /* messages */
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   119
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   120
  val PID = "pid"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   121
  val SESSION = "session"
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   122
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   123
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   124
  /* content */
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   125
27958
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
   126
  val ROOT = "root"
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
   127
  val RAW = "raw"
27970
3dd5fbdf61c4 added position, messages;
wenzelm
parents: 27958
diff changeset
   128
  val BAD = "bad"
27958
292d78c906b1 Common markup elements.
wenzelm
parents:
diff changeset
   129
}