src/Pure/Syntax/ast.ML
changeset 513 97a879e8d01b
parent 258 e540b7d4ecb1
child 922 196ca0973a6d
equal deleted inserted replaced
512:55755ed9fab9 513:97a879e8d01b
    87 (* pretty_ast *)
    87 (* pretty_ast *)
    88 
    88 
    89 fun pretty_ast (Constant a) = Pretty.str (quote a)
    89 fun pretty_ast (Constant a) = Pretty.str (quote a)
    90   | pretty_ast (Variable x) = Pretty.str x
    90   | pretty_ast (Variable x) = Pretty.str x
    91   | pretty_ast (Appl asts) =
    91   | pretty_ast (Appl asts) =
    92       Pretty.parents "(" ")" (Pretty.breaks (map pretty_ast asts));
    92       Pretty.enclose "(" ")" (Pretty.breaks (map pretty_ast asts));
    93 
    93 
    94 
    94 
    95 (* pprint_ast *)
    95 (* pprint_ast *)
    96 
    96 
    97 val pprint_ast = Pretty.pprint o pretty_ast;
    97 val pprint_ast = Pretty.pprint o pretty_ast;