src/Pure/codegen.ML
changeset 27353 71c4dd53d4cb
parent 27302 8d12ac6a3e1c
child 27398 768da1da59d6
equal deleted inserted replaced
27352:8adeff7fd4bc 27353:71c4dd53d4cb
  1109    | _ => error ("Malformed annotation: " ^ quote s));
  1109    | _ => error ("Malformed annotation: " ^ quote s));
  1110 
  1110 
  1111 
  1111 
  1112 structure P = OuterParse and K = OuterKeyword;
  1112 structure P = OuterParse and K = OuterKeyword;
  1113 
  1113 
  1114 val _ = OuterSyntax.keywords ["attach", "file", "contains"];
  1114 val _ = List.app OuterKeyword.keyword ["attach", "file", "contains"];
  1115 
  1115 
  1116 fun strip_whitespace s = implode (fst (take_suffix (equal "\n" orf equal " ")
  1116 fun strip_whitespace s = implode (fst (take_suffix (equal "\n" orf equal " ")
  1117   (snd (take_prefix (equal "\n" orf equal " ") (explode s))))) ^ "\n";
  1117   (snd (take_prefix (equal "\n" orf equal " ") (explode s))))) ^ "\n";
  1118 
  1118 
  1119 val parse_attach = Scan.repeat (P.$$$ "attach" |--
  1119 val parse_attach = Scan.repeat (P.$$$ "attach" |--