src/Pure/Thy/rail.ML
changeset 48992 0518bf89c777
parent 48911 5debc3e4fa81
child 53171 a5e54d4d9081
--- a/src/Pure/Thy/rail.ML	Wed Aug 29 11:31:07 2012 +0200
+++ b/src/Pure/Thy/rail.ML	Wed Aug 29 11:48:45 2012 +0200
@@ -35,7 +35,7 @@
 
 fun print (Token ((pos, _), (k, x))) =
   (if k = EOF then print_kind k else print_kind k ^ " " ^ quote x) ^
-  Position.str_of pos;
+  Position.here pos;
 
 fun print_keyword x = print_kind Keyword ^ " " ^ quote x;
 
@@ -92,7 +92,7 @@
     val prefix = "Rail syntax error";
 
     fun get_pos [] = " (end-of-input)"
-      | get_pos (tok :: _) = Position.str_of (pos_of tok);
+      | get_pos (tok :: _) = Position.here (pos_of tok);
 
     fun err (toks, NONE) = (fn () => prefix ^ get_pos toks)
       | err (toks, SOME msg) =