1234567891011121314151617181920212223242526272829303132333435363738394041424344openCommonmoduleFlag=Flag_parsing(*****************************************************************************)(* Subsystem testing *)(*****************************************************************************)lettest_tokens_nwfile=ifnot(file=~".*\\.nw")thenpr2"warning: seems not a noweb file";Flag.verbose_lexing:=true;Flag.verbose_parsing:=true;lettoks=Parse_nw.tokensfileintoks|>List.iter(funx->pr2_genx);()lettest_parse_nwfile=Parse_nw.parsefile|>ignorelettest_dump_nwfile=let((trees,_toks),_stat)=Parse_nw.parsefileinletv=Meta_ast_fuzzy.vof_treestreesinlets=Ocaml.string_of_vvinpr2s(*****************************************************************************)(* Unit tests *)(*****************************************************************************)(*****************************************************************************)(* Main entry for Arg *)(*****************************************************************************)letactions()=["-tokens_nw"," <file>",Common.mk_action_1_argtest_tokens_nw;"-parse_nw"," <file>",Common.mk_action_1_argtest_parse_nw;"-dump_nw"," <file>",Common.mk_action_1_argtest_dump_nw;]