src/Pure/Syntax/ast.ML
changeset 52175 626a757d3c2d
parent 43347 f18cf88453d6
child 56438 7f6b2634d853
equal deleted inserted replaced
52168:785d39ee8753 52175:626a757d3c2d
    68 
    68 
    69 
    69 
    70 (* strip_positions *)
    70 (* strip_positions *)
    71 
    71 
    72 fun strip_positions (Appl ((t as Constant c) :: u :: (v as Variable x) :: asts)) =
    72 fun strip_positions (Appl ((t as Constant c) :: u :: (v as Variable x) :: asts)) =
    73       if (c = "_constrain" orelse c = "_constrainAbs") andalso is_some (Term_Position.decode x)
    73       if member (op =) Term_Position.markers c andalso is_some (Term_Position.decode x)
    74       then mk_appl (strip_positions u) (map strip_positions asts)
    74       then mk_appl (strip_positions u) (map strip_positions asts)
    75       else Appl (map strip_positions (t :: u :: v :: asts))
    75       else Appl (map strip_positions (t :: u :: v :: asts))
    76   | strip_positions (Appl asts) = Appl (map strip_positions asts)
    76   | strip_positions (Appl asts) = Appl (map strip_positions asts)
    77   | strip_positions ast = ast;
    77   | strip_positions ast = ast;
    78 
    78