src/Pure/PIDE/markup.scala
author wenzelm
Tue Feb 18 17:03:12 2014 +0100 (2014-02-18 ago)
changeset 55553 4a5f65df29fa
parent 55552 bcc643ac071a
child 55555 99409ccbe04a
permissions -rw-r--r--
tuned signature;
wenzelm@45670
     1
/*  Title:      Pure/PIDE/markup.scala
wenzelm@45673
     2
    Module:     PIDE
wenzelm@27958
     3
    Author:     Makarius
wenzelm@27958
     4
wenzelm@50201
     5
Isabelle-specific implementation of quasi-abstract markup elements.
wenzelm@27958
     6
*/
wenzelm@27958
     7
wenzelm@27958
     8
package isabelle
wenzelm@27958
     9
wenzelm@27970
    10
wenzelm@32450
    11
object Markup
wenzelm@32450
    12
{
wenzelm@45666
    13
  /* properties */
wenzelm@29184
    14
wenzelm@29184
    15
  val NAME = "name"
wenzelm@43780
    16
  val Name = new Properties.String(NAME)
wenzelm@42136
    17
wenzelm@29184
    18
  val KIND = "kind"
wenzelm@43780
    19
  val Kind = new Properties.String(KIND)
wenzelm@29184
    20
wenzelm@52854
    21
  val INSTANCE = "instance"
wenzelm@52854
    22
  val Instance = new Properties.String(INSTANCE)
wenzelm@52854
    23
wenzelm@29184
    24
wenzelm@50201
    25
  /* basic markup */
wenzelm@29184
    26
wenzelm@45666
    27
  val Empty = Markup("", Nil)
wenzelm@45666
    28
  val Broken = Markup("broken", Nil)
wenzelm@50201
    29
wenzelm@55553
    30
  class Markup_String(val name: String, prop: String)
wenzelm@55553
    31
  {
wenzelm@55553
    32
    private val Prop = new Properties.String(prop)
wenzelm@55553
    33
wenzelm@55553
    34
    def apply(s: String): Markup = Markup(name, Prop(s))
wenzelm@55553
    35
    def unapply(markup: Markup): Option[String] =
wenzelm@55553
    36
      if (markup.name == name) Prop.unapply(markup.properties) else None
wenzelm@55553
    37
  }
wenzelm@55553
    38
wenzelm@55553
    39
  class Markup_Int(val name: String, prop: String)
wenzelm@55553
    40
  {
wenzelm@55553
    41
    private val Prop = new Properties.Int(prop)
wenzelm@55553
    42
wenzelm@55553
    43
    def apply(i: Int): Markup = Markup(name, Prop(i))
wenzelm@55553
    44
    def unapply(markup: Markup): Option[Int] =
wenzelm@55553
    45
      if (markup.name == name) Prop.unapply(markup.properties) else None
wenzelm@55553
    46
  }
wenzelm@55553
    47
wenzelm@50201
    48
wenzelm@50201
    49
  /* formal entities */
wenzelm@50201
    50
wenzelm@50201
    51
  val BINDING = "binding"
wenzelm@50201
    52
  val ENTITY = "entity"
wenzelm@50201
    53
  val DEF = "def"
wenzelm@50201
    54
  val REF = "ref"
wenzelm@50201
    55
wenzelm@50201
    56
  object Entity
wenzelm@50201
    57
  {
wenzelm@50201
    58
    def unapply(markup: Markup): Option[(String, String)] =
wenzelm@50201
    59
      markup match {
wenzelm@55553
    60
        case Markup(ENTITY, props) =>
wenzelm@55553
    61
          (props, props) match {
wenzelm@55553
    62
            case (Kind(kind), Name(name)) => Some(kind, name)
wenzelm@50201
    63
            case _ => None
wenzelm@50201
    64
          }
wenzelm@50201
    65
        case _ => None
wenzelm@50201
    66
      }
wenzelm@50201
    67
  }
wenzelm@50201
    68
wenzelm@50201
    69
wenzelm@50201
    70
  /* position */
wenzelm@50201
    71
wenzelm@50201
    72
  val LINE = "line"
wenzelm@50201
    73
  val OFFSET = "offset"
wenzelm@50201
    74
  val END_OFFSET = "end_offset"
wenzelm@50201
    75
  val FILE = "file"
wenzelm@50201
    76
  val ID = "id"
wenzelm@50201
    77
wenzelm@50201
    78
  val DEF_LINE = "def_line"
wenzelm@50201
    79
  val DEF_OFFSET = "def_offset"
wenzelm@50201
    80
  val DEF_END_OFFSET = "def_end_offset"
wenzelm@50201
    81
  val DEF_FILE = "def_file"
wenzelm@50201
    82
  val DEF_ID = "def_id"
wenzelm@50201
    83
wenzelm@50201
    84
  val POSITION_PROPERTIES = Set(LINE, OFFSET, END_OFFSET, FILE, ID)
wenzelm@50201
    85
  val POSITION = "position"
wenzelm@50201
    86
wenzelm@50201
    87
wenzelm@55552
    88
  /* embedded languages */
wenzelm@55552
    89
wenzelm@55552
    90
  val LANGUAGE = "language"
wenzelm@55553
    91
  val Language = new Markup_String(LANGUAGE, NAME)
wenzelm@55552
    92
wenzelm@55552
    93
wenzelm@54702
    94
  /* external resources */
wenzelm@50201
    95
wenzelm@50201
    96
  val PATH = "path"
wenzelm@55553
    97
  val Path = new Markup_String(PATH, NAME)
wenzelm@50201
    98
wenzelm@54702
    99
  val URL = "url"
wenzelm@55553
   100
  val Url = new Markup_String(URL, NAME)
wenzelm@54702
   101
wenzelm@50201
   102
wenzelm@50201
   103
  /* pretty printing */
wenzelm@50201
   104
wenzelm@55553
   105
  val Block = new Markup_Int("block", "indent")
wenzelm@55553
   106
  val Break = new Markup_Int("break", "width")
wenzelm@50201
   107
wenzelm@51570
   108
  val ITEM = "item"
wenzelm@51574
   109
  val BULLET = "bullet"
wenzelm@51570
   110
wenzelm@50201
   111
  val SEPARATOR = "separator"
wenzelm@50201
   112
wenzelm@50201
   113
wenzelm@50201
   114
  /* hidden text */
wenzelm@50201
   115
wenzelm@50201
   116
  val HIDDEN = "hidden"
wenzelm@50201
   117
wenzelm@50201
   118
wenzelm@50201
   119
  /* logical entities */
wenzelm@50201
   120
wenzelm@50201
   121
  val CLASS = "class"
wenzelm@50201
   122
  val TYPE_NAME = "type_name"
wenzelm@50201
   123
  val FIXED = "fixed"
wenzelm@53378
   124
  val CASE = "case"
wenzelm@50201
   125
  val CONSTANT = "constant"
wenzelm@50201
   126
  val DYNAMIC_FACT = "dynamic_fact"
wenzelm@50201
   127
wenzelm@50201
   128
wenzelm@50201
   129
  /* inner syntax */
wenzelm@50201
   130
wenzelm@50201
   131
  val TFREE = "tfree"
wenzelm@50201
   132
  val TVAR = "tvar"
wenzelm@50201
   133
  val FREE = "free"
wenzelm@50201
   134
  val SKOLEM = "skolem"
wenzelm@50201
   135
  val BOUND = "bound"
wenzelm@50201
   136
  val VAR = "var"
wenzelm@50201
   137
  val NUMERAL = "numeral"
wenzelm@50201
   138
  val LITERAL = "literal"
wenzelm@50201
   139
  val DELIMITER = "delimiter"
wenzelm@50201
   140
  val INNER_STRING = "inner_string"
wenzelm@55033
   141
  val INNER_CARTOUCHE = "inner_cartouche"
wenzelm@50201
   142
  val INNER_COMMENT = "inner_comment"
wenzelm@50201
   143
wenzelm@50201
   144
  val TOKEN_RANGE = "token_range"
wenzelm@50201
   145
wenzelm@50201
   146
  val SORTING = "sorting"
wenzelm@50201
   147
  val TYPING = "typing"
wenzelm@50201
   148
wenzelm@50201
   149
  val ATTRIBUTE = "attribute"
wenzelm@50201
   150
  val METHOD = "method"
wenzelm@50201
   151
wenzelm@50201
   152
wenzelm@55552
   153
  /* antiquotations */
wenzelm@50201
   154
wenzelm@55526
   155
  val ANTIQUOTED = "antiquoted"
wenzelm@55526
   156
  val ANTIQUOTE = "antiquote"
wenzelm@55526
   157
wenzelm@50201
   158
  val ML_ANTIQUOTATION = "ML_antiquotation"
wenzelm@50201
   159
  val DOCUMENT_ANTIQUOTATION = "document_antiquotation"
wenzelm@50201
   160
  val DOCUMENT_ANTIQUOTATION_OPTION = "document_antiquotation_option"
wenzelm@50201
   161
wenzelm@50201
   162
wenzelm@50201
   163
  /* text structure */
wenzelm@50201
   164
wenzelm@50201
   165
  val PARAGRAPH = "paragraph"
wenzelm@50545
   166
  val TEXT_FOLD = "text_fold"
wenzelm@50201
   167
wenzelm@50201
   168
wenzelm@50201
   169
  /* ML syntax */
wenzelm@50201
   170
wenzelm@55505
   171
  val ML_KEYWORD1 = "ML_keyword1"
wenzelm@55505
   172
  val ML_KEYWORD2 = "ML_keyword2"
wenzelm@55505
   173
  val ML_KEYWORD3 = "ML_keyword3"
wenzelm@50201
   174
  val ML_DELIMITER = "ML_delimiter"
wenzelm@50201
   175
  val ML_TVAR = "ML_tvar"
wenzelm@50201
   176
  val ML_NUMERAL = "ML_numeral"
wenzelm@50201
   177
  val ML_CHAR = "ML_char"
wenzelm@50201
   178
  val ML_STRING = "ML_string"
wenzelm@50201
   179
  val ML_COMMENT = "ML_comment"
wenzelm@50201
   180
wenzelm@50201
   181
  val ML_DEF = "ML_def"
wenzelm@50201
   182
  val ML_OPEN = "ML_open"
wenzelm@50201
   183
  val ML_STRUCT = "ML_struct"
wenzelm@50201
   184
  val ML_TYPING = "ML_typing"
wenzelm@50201
   185
wenzelm@50201
   186
wenzelm@50201
   187
  /* outer syntax */
wenzelm@50201
   188
wenzelm@50201
   189
  val KEYWORD = "keyword"
wenzelm@50201
   190
  val OPERATOR = "operator"
wenzelm@50201
   191
  val COMMAND = "command"
wenzelm@50201
   192
  val STRING = "string"
wenzelm@50201
   193
  val ALTSTRING = "altstring"
wenzelm@50201
   194
  val VERBATIM = "verbatim"
wenzelm@55033
   195
  val CARTOUCHE = "cartouche"
wenzelm@50201
   196
  val COMMENT = "comment"
wenzelm@50201
   197
  val CONTROL = "control"
wenzelm@50201
   198
wenzelm@50201
   199
  val KEYWORD1 = "keyword1"
wenzelm@50201
   200
  val KEYWORD2 = "keyword2"
wenzelm@50201
   201
wenzelm@50201
   202
wenzelm@50201
   203
  /* timing */
wenzelm@50201
   204
wenzelm@50781
   205
  val Elapsed = new Properties.Double("elapsed")
wenzelm@50781
   206
  val CPU = new Properties.Double("cpu")
wenzelm@50781
   207
  val GC = new Properties.Double("gc")
wenzelm@50781
   208
wenzelm@50781
   209
  object Timing_Properties
wenzelm@50781
   210
  {
wenzelm@50781
   211
    def apply(timing: isabelle.Timing): Properties.T =
wenzelm@50781
   212
      Elapsed(timing.elapsed.seconds) ::: CPU(timing.cpu.seconds) ::: GC(timing.gc.seconds)
wenzelm@51662
   213
wenzelm@50781
   214
    def unapply(props: Properties.T): Option[isabelle.Timing] =
wenzelm@50781
   215
      (props, props, props) match {
wenzelm@50781
   216
        case (Elapsed(elapsed), CPU(cpu), GC(gc)) =>
wenzelm@50781
   217
          Some(new isabelle.Timing(Time.seconds(elapsed), Time.seconds(cpu), Time.seconds(gc)))
wenzelm@50781
   218
        case _ => None
wenzelm@50781
   219
      }
wenzelm@50781
   220
  }
wenzelm@50781
   221
wenzelm@50201
   222
  val TIMING = "timing"
wenzelm@50201
   223
wenzelm@50201
   224
  object Timing
wenzelm@50201
   225
  {
wenzelm@50781
   226
    def apply(timing: isabelle.Timing): Markup = Markup(TIMING, Timing_Properties(timing))
wenzelm@51662
   227
wenzelm@50201
   228
    def unapply(markup: Markup): Option[isabelle.Timing] =
wenzelm@50201
   229
      markup match {
wenzelm@50781
   230
        case Markup(TIMING, Timing_Properties(timing)) => Some(timing)
wenzelm@50201
   231
        case _ => None
wenzelm@50201
   232
      }
wenzelm@50201
   233
  }
wenzelm@50201
   234
wenzelm@50201
   235
wenzelm@51662
   236
  /* command timing */
wenzelm@51662
   237
wenzelm@51818
   238
  val COMMAND_TIMING = "command_timing"
wenzelm@51662
   239
wenzelm@51662
   240
wenzelm@50201
   241
  /* toplevel */
wenzelm@50201
   242
wenzelm@50201
   243
  val SUBGOALS = "subgoals"
wenzelm@50201
   244
  val PROOF_STATE = "proof_state"
wenzelm@50201
   245
wenzelm@50201
   246
  val STATE = "state"
wenzelm@50543
   247
  val GOAL = "goal"
wenzelm@50201
   248
  val SUBGOAL = "subgoal"
wenzelm@50215
   249
wenzelm@50450
   250
wenzelm@50201
   251
  /* command status */
wenzelm@50201
   252
wenzelm@50201
   253
  val TASK = "task"
wenzelm@50201
   254
wenzelm@50201
   255
  val ACCEPTED = "accepted"
wenzelm@50201
   256
  val FORKED = "forked"
wenzelm@50201
   257
  val JOINED = "joined"
wenzelm@50201
   258
  val RUNNING = "running"
wenzelm@50201
   259
  val FINISHED = "finished"
wenzelm@50201
   260
  val FAILED = "failed"
wenzelm@50201
   261
wenzelm@50201
   262
wenzelm@50201
   263
  /* interactive documents */
wenzelm@50201
   264
wenzelm@50201
   265
  val VERSION = "version"
wenzelm@50201
   266
  val ASSIGN = "assign"
wenzelm@50201
   267
wenzelm@50201
   268
wenzelm@50201
   269
  /* prover process */
wenzelm@50201
   270
wenzelm@50201
   271
  val PROVER_COMMAND = "prover_command"
wenzelm@50201
   272
  val PROVER_ARG = "prover_arg"
wenzelm@50201
   273
wenzelm@50201
   274
wenzelm@50201
   275
  /* messages */
wenzelm@50201
   276
lars@55316
   277
  val SERIAL = "serial"
lars@55316
   278
  val Serial = new Properties.Long(SERIAL)
wenzelm@50201
   279
wenzelm@50201
   280
  val MESSAGE = "message"
wenzelm@50201
   281
wenzelm@50201
   282
  val INIT = "init"
wenzelm@50201
   283
  val STATUS = "status"
wenzelm@50201
   284
  val REPORT = "report"
wenzelm@50500
   285
  val RESULT = "result"
wenzelm@50201
   286
  val WRITELN = "writeln"
wenzelm@50201
   287
  val TRACING = "tracing"
wenzelm@50201
   288
  val WARNING = "warning"
wenzelm@50201
   289
  val ERROR = "error"
wenzelm@50201
   290
  val PROTOCOL = "protocol"
wenzelm@50201
   291
  val SYSTEM = "system"
wenzelm@50201
   292
  val STDOUT = "stdout"
wenzelm@50201
   293
  val STDERR = "stderr"
wenzelm@50201
   294
  val EXIT = "exit"
wenzelm@50201
   295
wenzelm@50201
   296
  val WRITELN_MESSAGE = "writeln_message"
wenzelm@50201
   297
  val TRACING_MESSAGE = "tracing_message"
wenzelm@50201
   298
  val WARNING_MESSAGE = "warning_message"
wenzelm@50201
   299
  val ERROR_MESSAGE = "error_message"
wenzelm@50201
   300
wenzelm@52876
   301
  val messages =
wenzelm@50201
   302
    Map(WRITELN -> WRITELN_MESSAGE, TRACING -> TRACING_MESSAGE,
wenzelm@52876
   303
        WARNING -> WARNING_MESSAGE, ERROR -> ERROR_MESSAGE)
wenzelm@52876
   304
  val message: String => String = messages.withDefault((s: String) => s)
wenzelm@50201
   305
wenzelm@50201
   306
  val Return_Code = new Properties.Int("return_code")
wenzelm@50201
   307
wenzelm@50201
   308
  val LEGACY = "legacy"
wenzelm@50201
   309
wenzelm@50201
   310
  val NO_REPORT = "no_report"
wenzelm@50201
   311
wenzelm@50201
   312
  val BAD = "bad"
wenzelm@50201
   313
wenzelm@50500
   314
  val INTENSIFY = "intensify"
wenzelm@52643
   315
  val INFORMATION = "information"
wenzelm@50500
   316
wenzelm@50500
   317
wenzelm@50500
   318
  /* active areas */
wenzelm@50500
   319
wenzelm@50715
   320
  val BROWSER = "browser"
wenzelm@50500
   321
  val GRAPHVIEW = "graphview"
wenzelm@50500
   322
wenzelm@50500
   323
  val SENDBACK = "sendback"
wenzelm@50500
   324
  val PADDING = "padding"
wenzelm@52697
   325
  val PADDING_LINE = (PADDING, "line")
wenzelm@52697
   326
  val PADDING_COMMAND = (PADDING, "command")
wenzelm@50500
   327
wenzelm@50500
   328
  val DIALOG = "dialog"
wenzelm@50503
   329
  val Result = new Properties.String(RESULT)
wenzelm@50500
   330
wenzelm@50201
   331
wenzelm@50201
   332
  /* protocol message functions */
wenzelm@50201
   333
wenzelm@50201
   334
  val FUNCTION = "function"
wenzelm@50201
   335
  val Function = new Properties.String(FUNCTION)
wenzelm@50201
   336
wenzelm@52800
   337
  val Flush: Properties.T = List((FUNCTION, "flush"))
wenzelm@52800
   338
wenzelm@52563
   339
  val Assign_Update: Properties.T = List((FUNCTION, "assign_update"))
wenzelm@50201
   340
  val Removed_Versions: Properties.T = List((FUNCTION, "removed_versions"))
wenzelm@50201
   341
wenzelm@52111
   342
  object Protocol_Handler
wenzelm@52111
   343
  {
wenzelm@52111
   344
    def unapply(props: Properties.T): Option[(String)] =
wenzelm@52111
   345
      props match {
wenzelm@52111
   346
        case List((FUNCTION, "protocol_handler"), (NAME, name)) => Some(name)
wenzelm@52111
   347
        case _ => None
wenzelm@52111
   348
      }
wenzelm@52111
   349
  }
wenzelm@52111
   350
wenzelm@52111
   351
  val INVOKE_SCALA = "invoke_scala"
wenzelm@50201
   352
  object Invoke_Scala
wenzelm@50201
   353
  {
wenzelm@50201
   354
    def unapply(props: Properties.T): Option[(String, String)] =
wenzelm@50201
   355
      props match {
wenzelm@52111
   356
        case List((FUNCTION, INVOKE_SCALA), (NAME, name), (ID, id)) => Some((name, id))
wenzelm@50201
   357
        case _ => None
wenzelm@50201
   358
      }
wenzelm@50201
   359
  }
wenzelm@52111
   360
wenzelm@52111
   361
  val CANCEL_SCALA = "cancel_scala"
wenzelm@50201
   362
  object Cancel_Scala
wenzelm@50201
   363
  {
wenzelm@50201
   364
    def unapply(props: Properties.T): Option[String] =
wenzelm@50201
   365
      props match {
wenzelm@52111
   366
        case List((FUNCTION, CANCEL_SCALA), (ID, id)) => Some(id)
wenzelm@50201
   367
        case _ => None
wenzelm@50201
   368
      }
wenzelm@50201
   369
  }
wenzelm@50255
   370
wenzelm@53055
   371
  val SLEDGEHAMMER_PROVERS = "sledgehammer_provers"
wenzelm@53055
   372
  val Sledgehammer_Provers: Properties.T = List((FUNCTION, SLEDGEHAMMER_PROVERS))
wenzelm@53055
   373
wenzelm@50255
   374
  object ML_Statistics
wenzelm@50255
   375
  {
wenzelm@50255
   376
    def unapply(props: Properties.T): Option[Properties.T] =
wenzelm@50255
   377
      props match {
wenzelm@50255
   378
        case (FUNCTION, "ML_statistics") :: stats => Some(stats)
wenzelm@50255
   379
        case _ => None
wenzelm@50255
   380
      }
wenzelm@50255
   381
  }
wenzelm@50975
   382
wenzelm@50975
   383
  object Task_Statistics
wenzelm@50975
   384
  {
wenzelm@50975
   385
    def unapply(props: Properties.T): Option[Properties.T] =
wenzelm@50975
   386
      props match {
wenzelm@50975
   387
        case (FUNCTION, "task_statistics") :: stats => Some(stats)
wenzelm@50975
   388
        case _ => None
wenzelm@50975
   389
      }
wenzelm@50975
   390
  }
lars@55316
   391
lars@55316
   392
  /* simplifier trace */
lars@55316
   393
lars@55316
   394
  val TEXT = "text"
lars@55316
   395
  val Text = new Properties.String(TEXT)
lars@55316
   396
lars@55316
   397
  val PARENT = "parent"
lars@55316
   398
  val Parent = new Properties.Long(PARENT)
lars@55316
   399
lars@55316
   400
  val SUCCESS = "success"
lars@55316
   401
  val Success = new Properties.Boolean(SUCCESS)
lars@55316
   402
lars@55390
   403
  val MEMORY = "memory"
lars@55390
   404
  val Memory = new Properties.Boolean(MEMORY)
lars@55390
   405
lars@55316
   406
  val CANCEL_SIMP_TRACE = "simp_trace_cancel"
lars@55316
   407
  object Cancel_Simp_Trace
lars@55316
   408
  {
lars@55316
   409
    def unapply(props: Properties.T): Option[Long] =
lars@55316
   410
      props match {
lars@55316
   411
        case (FUNCTION, CANCEL_SIMP_TRACE) :: Serial(id) => Some(id)
lars@55316
   412
        case _ => None
lars@55316
   413
      }
lars@55316
   414
  }
lars@55316
   415
lars@55316
   416
  val SIMP_TRACE = "simp_trace"
lars@55316
   417
  object Simp_Trace
lars@55316
   418
  {
lars@55316
   419
    def unapply(tree: XML.Tree): Option[(Long, Simplifier_Trace.Answer)] =
lars@55316
   420
      tree match {
lars@55316
   421
        case XML.Elem(Markup(SIMP_TRACE, props), _) =>
lars@55316
   422
          (props, props) match {
lars@55316
   423
            case (Serial(serial), Name(name)) =>
lars@55316
   424
              Simplifier_Trace.all_answers.find(_.name == name).map((serial, _))
lars@55316
   425
            case _ =>
lars@55316
   426
              None
lars@55316
   427
          }
lars@55316
   428
        case _ =>
lars@55316
   429
          None
lars@55316
   430
      }
lars@55316
   431
  }
lars@55316
   432
lars@55316
   433
  /* trace items from the prover */
lars@55316
   434
lars@55316
   435
  object Simp_Trace_Item
lars@55316
   436
  {
lars@55316
   437
lars@55316
   438
    def unapply(tree: XML.Tree): Option[(String, Data)] =
lars@55316
   439
      tree match {
lars@55316
   440
        case XML.Elem(Markup(RESULT, Serial(serial)), List(
lars@55316
   441
          XML.Elem(Markup(markup, props), content)
lars@55316
   442
        )) if markup.startsWith("simp_trace_") =>
lars@55316
   443
          (props, props) match {
lars@55316
   444
            case (Text(text), Parent(parent)) =>
lars@55316
   445
              Some((markup, Data(serial, markup, text, parent, props, content)))
lars@55316
   446
            case _ =>
lars@55316
   447
              None
lars@55316
   448
          }
lars@55316
   449
        case _ =>
lars@55316
   450
          None
lars@55316
   451
      }
lars@55316
   452
lars@55316
   453
    val LOG = "simp_trace_log"
lars@55316
   454
    val STEP = "simp_trace_step"
lars@55316
   455
    val RECURSE = "simp_trace_recurse"
lars@55316
   456
    val HINT = "simp_trace_hint"
lars@55316
   457
    val IGNORE = "simp_trace_ignore"
lars@55316
   458
lars@55316
   459
    case class Data(serial: Long, markup: String, text: String,
lars@55316
   460
                    parent: Long, props: Properties.T, content: XML.Body)
lars@55390
   461
    {
lars@55390
   462
      def memory: Boolean =
lars@55390
   463
        Memory.unapply(props) getOrElse true
lars@55390
   464
    }
lars@55316
   465
lars@55316
   466
  }
lars@55316
   467
wenzelm@45666
   468
}
wenzelm@43721
   469
wenzelm@43721
   470
wenzelm@45666
   471
sealed case class Markup(name: String, properties: Properties.T)
wenzelm@43748
   472