File: errors.ml

package info (click to toggle)
yojson 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,216 kB
  • sloc: ml: 3,890; makefile: 28
file content (4 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (2)
1
2
3
4
let string_of_position { Lexing.pos_lnum; pos_fname; _ } =
  match pos_fname with
  | "" -> Printf.sprintf "Line %d" pos_lnum
  | fname -> Printf.sprintf "File %s, line %d" fname pos_lnum