src/Pure/Syntax/syntax.ML
changeset 20664 ffbc5a57191a
parent 19546 00d5c7c7ce07
child 20784 eece9aaaf352
equal deleted inserted replaced
20663:2024d9f7df9c 20664:ffbc5a57191a
   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