equal
deleted
inserted
replaced
605 props match { |
605 props match { |
606 case (FUNCTION, SIMP_TRACE_CANCEL) :: Serial(i) => Some(i) |
606 case (FUNCTION, SIMP_TRACE_CANCEL) :: Serial(i) => Some(i) |
607 case _ => None |
607 case _ => None |
608 } |
608 } |
609 } |
609 } |
|
610 |
|
611 |
|
612 /* XML data representation */ |
|
613 |
|
614 def encode: XML.Encode.T[Markup] = (markup: Markup) => |
|
615 { |
|
616 import XML.Encode._ |
|
617 pair(string, properties)((markup.name, markup.properties)) |
|
618 } |
|
619 |
|
620 def decode: XML.Decode.T[Markup] = (body: XML.Body) => |
|
621 { |
|
622 import XML.Decode._ |
|
623 val (name, props) = pair(string, properties)(body) |
|
624 Markup(name, props) |
|
625 } |
610 } |
626 } |
611 |
627 |
612 |
628 |
613 sealed case class Markup(name: String, properties: Properties.T) |
629 sealed case class Markup(name: String, properties: Properties.T) |
614 { |
630 { |