summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/perl_checker.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-20 00:53:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-20 00:53:48 +0000
commit131207a1f99f85d2b8d272e7b47b058076b5c1cf (patch)
treeccc59e6e5ce5197eecd70944a0f723f143edf031 /perl_checker.src/perl_checker.ml
parent659ced82c2465f81c3f14a1fa601d7df9ce2d2da (diff)
downloadperl_checker-131207a1f99f85d2b8d272e7b47b058076b5c1cf.tar
perl_checker-131207a1f99f85d2b8d272e7b47b058076b5c1cf.tar.gz
perl_checker-131207a1f99f85d2b8d272e7b47b058076b5c1cf.tar.bz2
perl_checker-131207a1f99f85d2b8d272e7b47b058076b5c1cf.tar.xz
perl_checker-131207a1f99f85d2b8d272e7b47b058076b5c1cf.zip
*** empty log message ***
Diffstat (limited to 'perl_checker.src/perl_checker.ml')
-rw-r--r--perl_checker.src/perl_checker.ml9
1 files changed, 3 insertions, 6 deletions
diff --git a/perl_checker.src/perl_checker.ml b/perl_checker.src/perl_checker.ml
index 79b3ac9..7e951a8 100644
--- a/perl_checker.src/perl_checker.ml
+++ b/perl_checker.src/perl_checker.ml
@@ -8,12 +8,9 @@ let _ =
let lexbuf = Lexing.from_channel (Unix.open_process_in (Printf.sprintf "expand \"%s\"" file)) in
try
Info.start_a_new_file file ;
- if false then
- let t = Lexer.lexbuf2list (Lexer.concat_bareword_paren (Lexer.concat_spaces Lexer.token)) lexbuf in
- let _,_ = t, t in ()
- else
- let t = Parser.prog (Lexer.concat_bareword_paren (Lexer.concat_spaces Lexer.token)) lexbuf in
- let _,_ = t, t in ()
+ let tokens = Lexer.get_token Lexer.token lexbuf in
+ let t = Parser_helper.parse_tokens Parser.prog tokens (Some lexbuf) in
+ let _,_ = t, t in ()
with Failure s -> (
prerr_endline s ;
exit 1