text\<open>Serialise \<^typ>\<open>yxml_of_term\<close> to native string of target language\<close>
code_printing type_constructor yxml_of_term \<rightharpoonup> (SML) "string" and (OCaml) "string" and (Haskell) "String" and (Scala) "String"
| constant yot_empty \<rightharpoonup> (SML) "\"\"" and (OCaml) "\"\"" and (Haskell) "\"\"" and (Scala) "\"\""
| constant yot_literal \<rightharpoonup> (SML) "_" and (OCaml) "_" and (Haskell) "_" and (Scala) "_"
| constant yot_append \<rightharpoonup> (SML) "String.concat [(_), (_)]" and (OCaml) "String.concat \"\" [(_); (_)]" and (Haskell) infixr 5 "++" and (Scala) infixl 5 "+"
| constant yot_concat \<rightharpoonup> (SML) "String.concat" and (OCaml) "String.concat \"\"" and (Haskell) "Prelude.concat" and (Scala) "_.mkString(\"\")"
text\<open>
Stripped-down implementations of Isabelle's XML tree with YXML encoding as
defined in\<^file>\<open>~~/src/Pure/PIDE/xml.ML\<close>, \<^file>\<open>~~/src/Pure/PIDE/yxml.ML\<close>
sufficient to encode \<^typ>\<open>Code_Evaluation.term\<close> as in \<^file>\<open>~~/src/Pure/term_xml.ML\<close>. \<close>
definition tagged :: "String.literal \ String.literal option \ xml_tree list \ xml_tree" where"tagged tag x ts = Elem tag (case x of None \ [] | Some x' \ [(STR ''0'', x')]) ts"
definition list where"list f xs = map (node \ f) xs"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.