X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2Ftest_lexer.ml;h=587d87bd898fd63bc3823ac32e19e3929c47b56f;hb=09cfd99de377d72d7af96ad9815342a1b7b467a9;hp=393017a443416d9086949863f068a88ef11e69a6;hpb=c540548108057140163c63c50710fda2e5c6ea8f;p=helm.git diff --git a/helm/software/components/content_pres/test_lexer.ml b/helm/software/components/content_pres/test_lexer.ml index 393017a44..587d87bd8 100644 --- a/helm/software/components/content_pres/test_lexer.ml +++ b/helm/software/components/content_pres/test_lexer.ml @@ -37,9 +37,9 @@ let _ = Arg.parse arg_spec open_file usage; let lexer = match !level with - "1" -> CicNotationLexer.level1_pattern_lexer - | "2@" -> CicNotationLexer.level2_ast_lexer - | "2$" -> CicNotationLexer.level2_meta_lexer + "1" -> CicNotationLexer.level1_pattern_lexer () + | "2@" -> CicNotationLexer.level2_ast_lexer () + | "2$" -> CicNotationLexer.level2_meta_lexer () | l -> prerr_endline (Printf.sprintf "Unsupported level %s" l); exit 2 @@ -53,7 +53,7 @@ let _ = if a = "EOI" then raise Stream.Failure; let pos = loc_func !tok_count in print_endline (Printf.sprintf "%s '%s' (@ %d-%d)" a b - (Ploc.first_pos pos) (Ploc.last_pos pos)); + (Stdpp.first_pos pos) (Stdpp.last_pos pos)); incr tok_count; dump () in