src/HOL/TPTP/TPTP_Parser/tptp_syntax.ML
changeset 56265 785569927666
parent 55594 eb291b215c73
child 56281 03c3d1a7c3b8
equal deleted inserted replaced
56260:3d79c132e657 56265:785569927666
   283     Annotated_Formula of position * language * string * role * tptp_formula * annotation option
   283     Annotated_Formula of position * language * string * role * tptp_formula * annotation option
   284  |  Include of position * string * string list
   284  |  Include of position * string * string list
   285 
   285 
   286 type tptp_problem = tptp_line list
   286 type tptp_problem = tptp_line list
   287 
   287 
   288 fun debug f x = if !Runtime.debug then (f x; ()) else ()
   288 fun debug f x = if Options.default_bool @{option exception_trace} then (f x; ()) else ()
   289 
   289 
   290 fun nameof_tff_atom_type (Atom_type str) = str
   290 fun nameof_tff_atom_type (Atom_type str) = str
   291   | nameof_tff_atom_type _ = raise TPTP_SYNTAX "nameof_tff_atom_type called on non-atom type"
   291   | nameof_tff_atom_type _ = raise TPTP_SYNTAX "nameof_tff_atom_type called on non-atom type"
   292 
   292 
   293 fun pos_of_line tptp_line =
   293 fun pos_of_line tptp_line =