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