File: .ocamlinit

package info (click to toggle)
matita 0.5.8-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 31,144 kB
  • ctags: 10,276
  • sloc: ml: 91,469; xml: 8,768; makefile: 2,021; ansic: 605; sh: 462; php: 381; awk: 121; perl: 36; sql: 11; sed: 4
file content (45 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
(* directories *)
#directory "../components/cic"
#directory "../components/cic_notation"
#directory "../components/cic_omdoc"
#directory "../components/cic_proof_checking"
#directory "../components/cic_textual_parser2"
#directory "../components/cic_transformations"
#directory "../components/cic_unification"
#directory "../components/getter"
#directory "../components/hbugs"
#directory "../components/mathql"
#directory "../components/mathql_generator"
#directory "../components/mathql_interpreter"
#directory "../components/metadata"
#directory "../components/paramodulation"
#directory "../components/registry"
#directory "../components/tactics"
#directory "../components/thread"
#directory "../components/urimanager"
#directory "../components/xml"
#directory "../components/xmldiff"

(* custom printers *)
let fppuri ppf uri =
 let s = UriManager.string_of_uri uri in
  Format.pp_print_string ppf s
;;

#install_printer CicMetaSubst.fppsubst;;
#install_printer CicMetaSubst.fppterm;;
#install_printer CicMetaSubst.fppmetasenv;;
#install_printer fppuri;;

(* utility functions *)
let go = MatitacLib.interactive_loop;;

(* let's go! *)
let _ = 
 at_exit (fun () -> MatitacLib.clean_exit None);
 MatitaInit.initialize_all () ;
 if Array.length Sys.argv > 1 then
   MatitacLib.main `TOPLEVEL
 else
   MatitacLib.go ()
;;