equal
deleted
inserted
replaced
460 let |
460 let |
461 val Syntax ({consts, ...}, _) = syn; |
461 val Syntax ({consts, ...}, _) = syn; |
462 |
462 |
463 fun constify (ast as Ast.Constant _) = ast |
463 fun constify (ast as Ast.Constant _) = ast |
464 | constify (ast as Ast.Variable x) = |
464 | constify (ast as Ast.Variable x) = |
465 if x mem consts orelse NameSpace.is_qualified x then Ast.Constant x |
465 if member (op =) consts x orelse NameSpace.is_qualified x then Ast.Constant x |
466 else ast |
466 else ast |
467 | constify (Ast.Appl asts) = Ast.Appl (map constify asts); |
467 | constify (Ast.Appl asts) = Ast.Appl (map constify asts); |
468 in |
468 in |
469 (case read_asts context is_logtype syn true root str of |
469 (case read_asts context is_logtype syn true root str of |
470 [ast] => constify ast |
470 [ast] => constify ast |