1 let ic = open_in Sys.argv.(1) in
2 let token_stream = fst (Lexer.lex.Token.tok_func (Stream.of_channel ic)) in
4 let (a,b) = Stream.next token_stream in
5 if a = "EOI" then raise Stream.Failure;
6 print_endline (Printf.sprintf "%s '%s'" a b);
11 with Stream.Failure -> ()