equal
deleted
inserted
replaced
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 |