open_in Sys.argv.(1)
with Invalid_argument _ -> stdin
in
-let token_stream = fst (Lexer.lex.Token.tok_func (Stream.of_channel ic)) in
+let token_stream =
+ fst (CicTextualLexer2.lex.Token.tok_func (Stream.of_channel ic))
+in
let rec dump () =
let (a,b) = Stream.next token_stream in
if a = "EOI" then raise Stream.Failure;
open_in Sys.argv.(1)
with Invalid_argument _ -> stdin)
in
- let term = Parser.parse_term (Stream.of_channel ic) in
+ let term = CicTextualParser2.parse_term (Stream.of_channel ic) in
close_in ic;
- print_endline (Pp.pp_term term)
+ print_endline (CicTextualParser2Pp.pp_term term)
with Stdpp.Exc_located ((p_start, p_end), exn) ->
prerr_endline (Printf.sprintf "Exception at character %d-%d: %s"
p_start p_end (Printexc.to_string exn))
-(* print_endline (Macro.expand "def") *)
-
-(* Printf.printf "'%s'\n" (Macro.expand Sys.argv.(1)) *)
-