adapted ThyEdit.span;
authorwenzelm
Sun, 20 Jul 2008 23:07:01 +0200
changeset 27664 0e7a7fcd403b
parent 27663 098798321622
child 27665 b9e54ba563b3
adapted ThyEdit.span;
src/Pure/ProofGeneral/pgip_parser.ML
--- a/src/Pure/ProofGeneral/pgip_parser.ML	Sun Jul 20 23:06:59 2008 +0200
+++ b/src/Pure/ProofGeneral/pgip_parser.ML	Sun Jul 20 23:07:01 2008 +0200
@@ -93,13 +93,13 @@
 fun parse_item (kind, toks) =
   let val text = implode (map (PgmlIsabelle.pgml_mode ThyEdit.present_token) toks) in
     (case kind of
-      ThyEdit.Whitespace => [D.Whitespace {text = text}]
-    | ThyEdit.Junk => [D.Unparseable {text = text}]
-    | ThyEdit.Commandspan name => parse_command name text)
+      ThyEdit.Command name => parse_command name text
+    | ThyEdit.Ignored => [D.Whitespace {text = text}]
+    | ThyEdit.Unknown => [D.Unparseable {text = text}])
   end;
 
 
 fun pgip_parser pos str =
-  maps parse_item (ThyEdit.parse_items pos (Source.of_string str));
+  maps parse_item (ThyEdit.parse_spans pos (Source.of_string str));
 
 end;