src/Pure/General/markup.scala
author wenzelm
Sat Oct 24 17:49:44 2009 +0200 (2009-10-24)
changeset 33088 757d7787b10c
parent 32450 375db037f4d2
child 33985 1d33e85a3fa9
permissions -rw-r--r--
markup for formal entities, with "def" or "ref" occurrences;
wenzelm@27958
     1
/*  Title:      Pure/General/markup.scala
wenzelm@27958
     2
    Author:     Makarius
wenzelm@27958
     3
wenzelm@27958
     4
Common markup elements.
wenzelm@27958
     5
*/
wenzelm@27958
     6
wenzelm@27958
     7
package isabelle
wenzelm@27958
     8
wenzelm@27970
     9
wenzelm@32450
    10
object Markup
wenzelm@32450
    11
{
wenzelm@29184
    12
  /* name */
wenzelm@29184
    13
wenzelm@29184
    14
  val NAME = "name"
wenzelm@29184
    15
  val KIND = "kind"
wenzelm@29184
    16
wenzelm@29184
    17
wenzelm@33088
    18
  /* formal entities */
wenzelm@33088
    19
wenzelm@33088
    20
  val ENTITY = "entity"
wenzelm@33088
    21
  val DEF = "def"
wenzelm@33088
    22
  val REF = "ref"
wenzelm@33088
    23
wenzelm@33088
    24
wenzelm@27970
    25
  /* position */
wenzelm@27970
    26
wenzelm@27970
    27
  val LINE = "line"
wenzelm@27970
    28
  val COLUMN = "column"
wenzelm@27970
    29
  val OFFSET = "offset"
wenzelm@27970
    30
  val END_LINE = "end_line"
wenzelm@27970
    31
  val END_COLUMN = "end_column"
wenzelm@27970
    32
  val END_OFFSET = "end_offset"
wenzelm@27970
    33
  val FILE = "file"
wenzelm@27970
    34
  val ID = "id"
wenzelm@27970
    35
wenzelm@32450
    36
  val POSITION_PROPERTIES =
wenzelm@32450
    37
    Set(LINE, COLUMN, OFFSET, END_LINE, END_COLUMN, END_OFFSET, FILE, ID)
wenzelm@29205
    38
wenzelm@29184
    39
  val POSITION = "position"
wenzelm@29184
    40
  val LOCATION = "location"
wenzelm@29184
    41
wenzelm@29184
    42
wenzelm@29184
    43
  /* logical entities */
wenzelm@29184
    44
wenzelm@29184
    45
  val TCLASS = "tclass"
wenzelm@29184
    46
  val TYCON = "tycon"
wenzelm@29184
    47
  val FIXED_DECL = "fixed_decl"
wenzelm@29184
    48
  val FIXED = "fixed"
wenzelm@29184
    49
  val CONST_DECL = "const_decl"
wenzelm@29184
    50
  val CONST = "const"
wenzelm@29184
    51
  val FACT_DECL = "fact_decl"
wenzelm@29184
    52
  val FACT = "fact"
wenzelm@29184
    53
  val DYNAMIC_FACT = "dynamic_fact"
wenzelm@29184
    54
  val LOCAL_FACT_DECL = "local_fact_decl"
wenzelm@29184
    55
  val LOCAL_FACT = "local_fact"
wenzelm@29184
    56
wenzelm@29184
    57
wenzelm@29184
    58
  /* inner syntax */
wenzelm@29184
    59
wenzelm@29184
    60
  val TFREE = "tfree"
wenzelm@29184
    61
  val TVAR = "tvar"
wenzelm@29184
    62
  val FREE = "free"
wenzelm@29184
    63
  val SKOLEM = "skolem"
wenzelm@29184
    64
  val BOUND = "bound"
wenzelm@29184
    65
  val VAR = "var"
wenzelm@29184
    66
  val NUM = "num"
wenzelm@29184
    67
  val FLOAT = "float"
wenzelm@29184
    68
  val XNUM = "xnum"
wenzelm@29184
    69
  val XSTR = "xstr"
wenzelm@29184
    70
  val LITERAL = "literal"
wenzelm@29184
    71
  val INNER_COMMENT = "inner_comment"
wenzelm@29184
    72
wenzelm@29184
    73
  val SORT = "sort"
wenzelm@29184
    74
  val TYP = "typ"
wenzelm@29184
    75
  val TERM = "term"
wenzelm@29184
    76
  val PROP = "prop"
wenzelm@29184
    77
wenzelm@29184
    78
  val ATTRIBUTE = "attribute"
wenzelm@29184
    79
  val METHOD = "method"
wenzelm@29184
    80
wenzelm@29184
    81
wenzelm@29184
    82
  /* embedded source text */
wenzelm@29184
    83
wenzelm@29184
    84
  val ML_SOURCE = "ML_source"
wenzelm@29184
    85
  val DOC_SOURCE = "doc_source"
wenzelm@29184
    86
wenzelm@29184
    87
  val ANTIQ = "antiq"
wenzelm@29184
    88
  val ML_ANTIQ = "ML_antiq"
wenzelm@29184
    89
  val DOC_ANTIQ = "doc_antiq"
wenzelm@29184
    90
wenzelm@29184
    91
wenzelm@30615
    92
  /* ML syntax */
wenzelm@30615
    93
wenzelm@30615
    94
  val ML_KEYWORD = "ML_keyword"
wenzelm@30615
    95
  val ML_IDENT = "ML_ident"
wenzelm@30615
    96
  val ML_TVAR = "ML_tvar"
wenzelm@30615
    97
  val ML_NUMERAL = "ML_numeral"
wenzelm@30615
    98
  val ML_CHAR = "ML_char"
wenzelm@30615
    99
  val ML_STRING = "ML_string"
wenzelm@30615
   100
  val ML_COMMENT = "ML_comment"
wenzelm@30615
   101
  val ML_MALFORMED = "ML_malformed"
wenzelm@30615
   102
wenzelm@30702
   103
  val ML_DEF = "ML_def"
wenzelm@31472
   104
  val ML_OPEN = "ML_open"
wenzelm@31472
   105
  val ML_STRUCT = "ML_struct"
wenzelm@30702
   106
  val ML_REF = "ML_ref"
wenzelm@30702
   107
  val ML_TYPING = "ML_typing"
wenzelm@30702
   108
wenzelm@30615
   109
wenzelm@29184
   110
  /* outer syntax */
wenzelm@29184
   111
wenzelm@29184
   112
  val KEYWORD_DECL = "keyword_decl"
wenzelm@29184
   113
  val COMMAND_DECL = "command_decl"
wenzelm@29184
   114
wenzelm@29184
   115
  val KEYWORD = "keyword"
wenzelm@29184
   116
  val COMMAND = "command"
wenzelm@29184
   117
  val IDENT = "ident"
wenzelm@29184
   118
  val STRING = "string"
wenzelm@29184
   119
  val ALTSTRING = "altstring"
wenzelm@29184
   120
  val VERBATIM = "verbatim"
wenzelm@29184
   121
  val COMMENT = "comment"
wenzelm@29184
   122
  val CONTROL = "control"
wenzelm@29184
   123
  val MALFORMED = "malformed"
wenzelm@29184
   124
wenzelm@29185
   125
  val COMMAND_SPAN = "command_span"
wenzelm@29185
   126
  val IGNORED_SPAN = "ignored_span"
wenzelm@29185
   127
  val MALFORMED_SPAN = "malformed_span"
wenzelm@29185
   128
wenzelm@29184
   129
wenzelm@29184
   130
  /* toplevel */
wenzelm@29184
   131
wenzelm@29184
   132
  val STATE = "state"
wenzelm@29184
   133
  val SUBGOAL = "subgoal"
wenzelm@29184
   134
  val SENDBACK = "sendback"
wenzelm@29184
   135
  val HILITE = "hilite"
wenzelm@29184
   136
wenzelm@29184
   137
wenzelm@29184
   138
  /* command status */
wenzelm@29184
   139
wenzelm@29417
   140
  val TASK = "task"
wenzelm@29417
   141
wenzelm@29184
   142
  val UNPROCESSED = "unprocessed"
wenzelm@29184
   143
  val RUNNING = "running"
wenzelm@29184
   144
  val FAILED = "failed"
wenzelm@29184
   145
  val FINISHED = "finished"
wenzelm@29184
   146
  val DISPOSED = "disposed"
wenzelm@29488
   147
wenzelm@29488
   148
wenzelm@29488
   149
  /* interactive documents */
wenzelm@29488
   150
wenzelm@29488
   151
  val EDITS = "edits"
wenzelm@29488
   152
  val EDIT = "edit"
wenzelm@29184
   153
wenzelm@27970
   154
wenzelm@27970
   155
  /* messages */
wenzelm@27970
   156
wenzelm@27970
   157
  val PID = "pid"
wenzelm@27970
   158
  val SESSION = "session"
wenzelm@27970
   159
wenzelm@29195
   160
  val MESSAGE = "message"
wenzelm@29522
   161
  val CLASS = "class"
wenzelm@29522
   162
wenzelm@29522
   163
  val INIT = "init"
wenzelm@29522
   164
  val STATUS = "status"
wenzelm@29522
   165
  val WRITELN = "writeln"
wenzelm@29522
   166
  val PRIORITY = "priority"
wenzelm@29522
   167
  val TRACING = "tracing"
wenzelm@29522
   168
  val WARNING = "warning"
wenzelm@29522
   169
  val ERROR = "error"
wenzelm@29522
   170
  val DEBUG = "debug"
wenzelm@29522
   171
  val SYSTEM = "system"
wenzelm@29522
   172
  val STDIN = "stdin"
wenzelm@29522
   173
  val STDOUT = "stdout"
wenzelm@29522
   174
  val SIGNAL = "signal"
wenzelm@29522
   175
  val EXIT = "exit"
wenzelm@29195
   176
wenzelm@31384
   177
  val READY = "ready"
wenzelm@31384
   178
wenzelm@27970
   179
wenzelm@27970
   180
  /* content */
wenzelm@27970
   181
wenzelm@27958
   182
  val ROOT = "root"
wenzelm@27958
   183
  val RAW = "raw"
wenzelm@27970
   184
  val BAD = "bad"
wenzelm@27958
   185
}