src/Pure/Syntax/syntax.ML
changeset 18678 dd0c569fa43d
parent 18428 4059413acbc1
child 18720 dd1ebba12151
equal deleted inserted replaced
18677:01265301db7f 18678:dd0c569fa43d
   445       | constify (Ast.Appl asts) = Ast.Appl (map constify asts);
   445       | constify (Ast.Appl asts) = Ast.Appl (map constify asts);
   446   in
   446   in
   447     (case read_asts thy is_logtype syn true root str of
   447     (case read_asts thy is_logtype syn true root str of
   448       [ast] => constify ast
   448       [ast] => constify ast
   449     | _ => error ("Syntactically ambiguous input: " ^ quote str))
   449     | _ => error ("Syntactically ambiguous input: " ^ quote str))
   450   end handle ERROR =>
   450   end handle ERROR msg =>
   451     error ("The error(s) above occurred in translation pattern " ^
   451     cat_error msg ("The error(s) above occurred in translation pattern " ^
   452       quote str);
   452       quote str);
   453 
   453 
   454 
   454 
   455 fun prep_rules rd_pat raw_rules =
   455 fun prep_rules rd_pat raw_rules =
   456   let val rules = map (map_trrule rd_pat) raw_rules in
   456   let val rules = map (map_trrule rd_pat) raw_rules in