diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-09 12:02:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-09 12:02:04 +0000 |
commit | 4747b0022a0b9d8b4a631428c4a157f056af823c (patch) | |
tree | 3b86aa94b962fcc4872a7813d7eb1042e38dca47 /perl_checker.src/perl_checker.ml | |
parent | a94569f90f13d5636542ff0da7ce3bbd141c0928 (diff) | |
download | perl_checker-4747b0022a0b9d8b4a631428c4a157f056af823c.tar perl_checker-4747b0022a0b9d8b4a631428c4a157f056af823c.tar.gz perl_checker-4747b0022a0b9d8b4a631428c4a157f056af823c.tar.bz2 perl_checker-4747b0022a0b9d8b4a631428c4a157f056af823c.tar.xz perl_checker-4747b0022a0b9d8b4a631428c4a157f056af823c.zip |
*** empty log message ***
Diffstat (limited to 'perl_checker.src/perl_checker.ml')
-rw-r--r-- | perl_checker.src/perl_checker.ml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perl_checker.src/perl_checker.ml b/perl_checker.src/perl_checker.ml new file mode 100644 index 0000000..dd7b75e --- /dev/null +++ b/perl_checker.src/perl_checker.ml @@ -0,0 +1,18 @@ +open Types + +let _ = + let file = try Sys.argv.(2) with _ -> try Sys.argv.(1) with _ -> "/tmp/t.pl" in + let lexbuf = Lexing.from_channel (open_in file) in + let _ = + try + Info.start_a_new_file file ; + if false then + let tokens = Lexer.lexbuf2list Lexer.token lexbuf in + let _,_ = tokens, tokens in "" + else + Parser.prog Lexer.token lexbuf + with Failure s -> ( + prerr_endline s ; + exit 1 + ) in + () |