src/Pure/codegen.ML
changeset 17057 0934ac31985f
parent 16769 7f188f2127f7
child 17144 6642e0f96f44
equal deleted inserted replaced
17056:05fc32a23b8b 17057:0934ac31985f
   894        \        val f' = !f\n\
   894        \        val f' = !f\n\
   895        \      in (f := (fn x' => if x = x' then y else f' x'); y) end))\n\
   895        \      in (f := (fn x' => if x = x' then y else f' x'); y) end))\n\
   896        \  in (fn x => !f x) end;\n")]))]];
   896        \  in (fn x => !f x) end;\n")]))]];
   897 
   897 
   898 
   898 
   899 structure P = OuterParse and K = OuterSyntax.Keyword;
   899 structure P = OuterParse and K = OuterKeyword;
   900 
   900 
   901 fun strip_newlines s = implode (fst (take_suffix (equal "\n")
   901 fun strip_newlines s = implode (fst (take_suffix (equal "\n")
   902   (snd (take_prefix (equal "\n") (explode s))))) ^ "\n";
   902   (snd (take_prefix (equal "\n") (explode s))))) ^ "\n";
   903 
   903 
   904 val parse_attach = Scan.repeat (P.$$$ "attach" |--
   904 val parse_attach = Scan.repeat (P.$$$ "attach" |--