12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849openCommonmoduleFlag=Flag_parsing(*****************************************************************************)(* Subsystem testing *)(*****************************************************************************)lettest_tokens_lispfile=(matchFile_type.file_type_of_filefilewith|File_type.PL(File_type.Lisp_)->()|_->pr2"warning: seems not a lisp file";);Flag.verbose_lexing:=true;Flag.verbose_parsing:=true;lettoks=Parse_lisp.tokensfileintoks|>List.iter(funx->pr2_genx);()lettest_parse_lispxs=letfullxs=Lib_parsing_lisp.find_source_files_of_dir_or_filesxsinletstat_list=ref[]infullxs|>List.iter(funfile->pr2("PARSING: "^file);let(_xs,stat)=Parse_lisp.parsefileinCommon.pushstatstat_list;);Parse_info.print_parsing_stat_list!stat_list;()(*****************************************************************************)(* Unit tests *)(*****************************************************************************)(*****************************************************************************)(* Main entry for Arg *)(*****************************************************************************)letactions()=["-tokens_lisp"," <file>",Common.mk_action_1_argtest_tokens_lisp;"-parse_lisp"," <files or dirs>",Common.mk_action_n_argtest_parse_lisp;]