src/HOL/Tools/value.ML
changeset 59936 b8ffc3dc9e24
parent 59323 468bd3aedfa1
child 62969 9f394a16c557
equal deleted inserted replaced
59935:343905de27b1 59936:b8ffc3dc9e24
    68 
    68 
    69 val opt_evaluator =
    69 val opt_evaluator =
    70   Scan.option (@{keyword "["} |-- Parse.xname --| @{keyword "]"})
    70   Scan.option (@{keyword "["} |-- Parse.xname --| @{keyword "]"})
    71   
    71   
    72 val _ =
    72 val _ =
    73   Outer_Syntax.command @{command_spec "value"} "evaluate and print term"
    73   Outer_Syntax.command @{command_keyword value} "evaluate and print term"
    74     (opt_evaluator -- opt_modes -- Parse.term
    74     (opt_evaluator -- opt_modes -- Parse.term
    75       >> (fn ((some_name, modes), t) => Toplevel.keep (value_cmd some_name modes t)));
    75       >> (fn ((some_name, modes), t) => Toplevel.keep (value_cmd some_name modes t)));
    76 
    76 
    77 val _ = Theory.setup
    77 val _ = Theory.setup
    78   (Thy_Output.antiquotation @{binding value}
    78   (Thy_Output.antiquotation @{binding value}