File: run.t

package info (click to toggle)
ocaml-odoc 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,104 kB
  • sloc: ml: 59,291; javascript: 2,572; sh: 566; makefile: 31
file content (28 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
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
  $ ocamlc -bin-annot main.mli
  $ odoc extract-code -o output.ml --line-directives main.cmti

  $ cat output.ml
  #1 "main.mli"
        
        let x = 1
      
  #7 "main.mli"
        
        let () =
          print_int x;
          print_newline ()
      
  #15 "main.mli"
          
          let hello = 2
        
  #22 "main.mli"
              
              let _ = hello +. hello
            

  $ ocaml output.ml 2> error.txt
  1
  [2]
  $ grep File error.txt
  File "main.mli", line 23, characters 20-25: