src/Pure/General/markup.scala
author wenzelm
Fri Jan 16 22:56:12 2009 +0100 (2009-01-16 ago)
changeset 29522 793766d4c1b5
parent 29488 8fc3aeece219
child 30615 f1275196df16
permissions -rw-r--r--
moved message markup into Scala layer -- reduced redundancy;
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@27958
     9
object Markup {
wenzelm@27970
    10
wenzelm@29184
    11
  /* name */
wenzelm@29184
    12
wenzelm@29184
    13
  val NAME = "name"
wenzelm@29184
    14
  val KIND = "kind"
wenzelm@29184
    15
wenzelm@29184
    16
wenzelm@27970
    17
  /* position */
wenzelm@27970
    18
wenzelm@27970
    19
  val LINE = "line"
wenzelm@27970
    20
  val COLUMN = "column"
wenzelm@27970
    21
  val OFFSET = "offset"
wenzelm@27970
    22
  val END_LINE = "end_line"
wenzelm@27970
    23
  val END_COLUMN = "end_column"
wenzelm@27970
    24
  val END_OFFSET = "end_offset"
wenzelm@27970
    25
  val FILE = "file"
wenzelm@27970
    26
  val ID = "id"
wenzelm@27970
    27
wenzelm@29205
    28
  val POSITION_PROPERTIES = Set(LINE, COLUMN, OFFSET, END_LINE, END_COLUMN, END_OFFSET, FILE, ID)
wenzelm@29205
    29
wenzelm@29184
    30
  val POSITION = "position"
wenzelm@29184
    31
  val LOCATION = "location"
wenzelm@29184
    32
wenzelm@29184
    33
wenzelm@29184
    34
  /* logical entities */
wenzelm@29184
    35
wenzelm@29184
    36
  val TCLASS = "tclass"
wenzelm@29184
    37
  val TYCON = "tycon"
wenzelm@29184
    38
  val FIXED_DECL = "fixed_decl"
wenzelm@29184
    39
  val FIXED = "fixed"
wenzelm@29184
    40
  val CONST_DECL = "const_decl"
wenzelm@29184
    41
  val CONST = "const"
wenzelm@29184
    42
  val FACT_DECL = "fact_decl"
wenzelm@29184
    43
  val FACT = "fact"
wenzelm@29184
    44
  val DYNAMIC_FACT = "dynamic_fact"
wenzelm@29184
    45
  val LOCAL_FACT_DECL = "local_fact_decl"
wenzelm@29184
    46
  val LOCAL_FACT = "local_fact"
wenzelm@29184
    47
wenzelm@29184
    48
wenzelm@29184
    49
  /* inner syntax */
wenzelm@29184
    50
wenzelm@29184
    51
  val TFREE = "tfree"
wenzelm@29184
    52
  val TVAR = "tvar"
wenzelm@29184
    53
  val FREE = "free"
wenzelm@29184
    54
  val SKOLEM = "skolem"
wenzelm@29184
    55
  val BOUND = "bound"
wenzelm@29184
    56
  val VAR = "var"
wenzelm@29184
    57
  val NUM = "num"
wenzelm@29184
    58
  val FLOAT = "float"
wenzelm@29184
    59
  val XNUM = "xnum"
wenzelm@29184
    60
  val XSTR = "xstr"
wenzelm@29184
    61
  val LITERAL = "literal"
wenzelm@29184
    62
  val INNER_COMMENT = "inner_comment"
wenzelm@29184
    63
wenzelm@29184
    64
  val SORT = "sort"
wenzelm@29184
    65
  val TYP = "typ"
wenzelm@29184
    66
  val TERM = "term"
wenzelm@29184
    67
  val PROP = "prop"
wenzelm@29184
    68
wenzelm@29184
    69
  val ATTRIBUTE = "attribute"
wenzelm@29184
    70
  val METHOD = "method"
wenzelm@29184
    71
wenzelm@29184
    72
wenzelm@29184
    73
  /* embedded source text */
wenzelm@29184
    74
wenzelm@29184
    75
  val ML_SOURCE = "ML_source"
wenzelm@29184
    76
  val DOC_SOURCE = "doc_source"
wenzelm@29184
    77
wenzelm@29184
    78
  val ANTIQ = "antiq"
wenzelm@29184
    79
  val ML_ANTIQ = "ML_antiq"
wenzelm@29184
    80
  val DOC_ANTIQ = "doc_antiq"
wenzelm@29184
    81
wenzelm@29184
    82
wenzelm@29184
    83
  /* outer syntax */
wenzelm@29184
    84
wenzelm@29184
    85
  val KEYWORD_DECL = "keyword_decl"
wenzelm@29184
    86
  val COMMAND_DECL = "command_decl"
wenzelm@29184
    87
wenzelm@29184
    88
  val KEYWORD = "keyword"
wenzelm@29184
    89
  val COMMAND = "command"
wenzelm@29184
    90
  val IDENT = "ident"
wenzelm@29184
    91
  val STRING = "string"
wenzelm@29184
    92
  val ALTSTRING = "altstring"
wenzelm@29184
    93
  val VERBATIM = "verbatim"
wenzelm@29184
    94
  val COMMENT = "comment"
wenzelm@29184
    95
  val CONTROL = "control"
wenzelm@29184
    96
  val MALFORMED = "malformed"
wenzelm@29184
    97
wenzelm@29185
    98
  val COMMAND_SPAN = "command_span"
wenzelm@29185
    99
  val IGNORED_SPAN = "ignored_span"
wenzelm@29185
   100
  val MALFORMED_SPAN = "malformed_span"
wenzelm@29185
   101
wenzelm@29184
   102
wenzelm@29184
   103
  /* toplevel */
wenzelm@29184
   104
wenzelm@29184
   105
  val STATE = "state"
wenzelm@29184
   106
  val SUBGOAL = "subgoal"
wenzelm@29184
   107
  val SENDBACK = "sendback"
wenzelm@29184
   108
  val HILITE = "hilite"
wenzelm@29184
   109
wenzelm@29184
   110
wenzelm@29184
   111
  /* command status */
wenzelm@29184
   112
wenzelm@29417
   113
  val TASK = "task"
wenzelm@29417
   114
wenzelm@29184
   115
  val UNPROCESSED = "unprocessed"
wenzelm@29184
   116
  val RUNNING = "running"
wenzelm@29184
   117
  val FAILED = "failed"
wenzelm@29184
   118
  val FINISHED = "finished"
wenzelm@29184
   119
  val DISPOSED = "disposed"
wenzelm@29488
   120
wenzelm@29488
   121
wenzelm@29488
   122
  /* interactive documents */
wenzelm@29488
   123
wenzelm@29488
   124
  val EDITS = "edits"
wenzelm@29488
   125
  val EDIT = "edit"
wenzelm@29184
   126
wenzelm@27970
   127
wenzelm@27970
   128
  /* messages */
wenzelm@27970
   129
wenzelm@27970
   130
  val PID = "pid"
wenzelm@27970
   131
  val SESSION = "session"
wenzelm@27970
   132
wenzelm@29195
   133
  val MESSAGE = "message"
wenzelm@29522
   134
  val CLASS = "class"
wenzelm@29522
   135
wenzelm@29522
   136
  val INIT = "init"
wenzelm@29522
   137
  val STATUS = "status"
wenzelm@29522
   138
  val WRITELN = "writeln"
wenzelm@29522
   139
  val PRIORITY = "priority"
wenzelm@29522
   140
  val TRACING = "tracing"
wenzelm@29522
   141
  val WARNING = "warning"
wenzelm@29522
   142
  val ERROR = "error"
wenzelm@29522
   143
  val DEBUG = "debug"
wenzelm@29522
   144
  val SYSTEM = "system"
wenzelm@29522
   145
  val STDIN = "stdin"
wenzelm@29522
   146
  val STDOUT = "stdout"
wenzelm@29522
   147
  val SIGNAL = "signal"
wenzelm@29522
   148
  val EXIT = "exit"
wenzelm@29195
   149
wenzelm@27970
   150
wenzelm@27970
   151
  /* content */
wenzelm@27970
   152
wenzelm@27958
   153
  val ROOT = "root"
wenzelm@27958
   154
  val RAW = "raw"
wenzelm@27970
   155
  val BAD = "bad"
wenzelm@27958
   156
}