src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML
changeset 65999 ee4cf96a9406
parent 64560 c48becd96398
child 69366 b6dacf6eabe3
equal deleted inserted replaced
65998:d07300e8a14d 65999:ee4cf96a9406
   953 
   953 
   954 and interpret_file cautious path_prefixes file_name =
   954 and interpret_file cautious path_prefixes file_name =
   955   let
   955   let
   956     val config =
   956     val config =
   957       {cautious = cautious,
   957       {cautious = cautious,
   958        problem_name =
   958        problem_name = SOME (TPTP_Problem_Name.parse_problem_name (Path.base_name file_name))}
   959         SOME (TPTP_Problem_Name.parse_problem_name ((Path.base #> Path.implode)
       
   960          file_name))}
       
   961   in interpret_file' config [] path_prefixes file_name end
   959   in interpret_file' config [] path_prefixes file_name end
   962 
   960 
   963 fun import_file cautious path_prefixes file_name type_map const_map thy =
   961 fun import_file cautious path_prefixes file_name type_map const_map thy =
   964   let
   962   let
   965     val prob_name =
   963     val prob_name =
   966       TPTP_Problem_Name.parse_problem_name (Path.implode (Path.base file_name))
   964       TPTP_Problem_Name.parse_problem_name (Path.base_name file_name)
   967     val (result, thy') =
   965     val (result, thy') =
   968       interpret_file cautious path_prefixes file_name type_map const_map thy
   966       interpret_file cautious path_prefixes file_name type_map const_map thy
   969   (*FIXME doesn't check if problem has already been interpreted*)
   967   (*FIXME doesn't check if problem has already been interpreted*)
   970   in TPTP_Data.map (cons ((prob_name, result))) thy' end
   968   in TPTP_Data.map (cons ((prob_name, result))) thy' end
   971 
   969