diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-12-06 19:53:07 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-12-06 19:53:07 +0100 |
commit | 185a8ea39b1dbd795aa54b7b9c82e393a9185765 (patch) | |
tree | 8dfaece32823b8ff65c2a6acadd68c23ad6453c5 /src/main.ml | |
parent | 41149667006a5606cf142a6e73cb6748b1212045 (diff) | |
download | LPC-Projet-185a8ea39b1dbd795aa54b7b9c82e393a9185765.tar.gz LPC-Projet-185a8ea39b1dbd795aa54b7b9c82e393a9185765.zip |
Corrected many bugs, improved error reporting.
Diffstat (limited to 'src/main.ml')
-rw-r--r-- | src/main.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.ml b/src/main.ml index 1a7d5b1..ca1134a 100644 --- a/src/main.ml +++ b/src/main.ml @@ -2,6 +2,7 @@ open Format open Lexing let parse_only = ref false +let type_only = ref false let dump = ref false let dumpt = ref false @@ -26,6 +27,7 @@ let localisation2 (pos1,pos2) = let options = [ "--parse-only", Arg.Set parse_only, "Stops after parsing of the input file."; + "--type-only", Arg.Set type_only, "Stops after typechecking of the input file."; "--dump", Arg.Set dump, "Dump the AST after parsing."; "--dumpt", Arg.Set dumpt, "Dump the AST after typing." ] @@ -53,6 +55,10 @@ let () = if not !parse_only then begin let t = Typing.prog p in if !dumpt then Pretty_typing.print_prog t; + + if not !type_only then begin + () + end end with | Lexer.Lexing_error s -> |