aboutsummaryrefslogtreecommitdiff
path: root/gramlib/ploc.ml
blob: 44ba0c1f44b36a11d774cd40fbc470136166d4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(* camlp5r *)
(* ploc.ml,v *)
(* Copyright (c) INRIA 2007-2017 *)

open Loc

let make_unlined (bp, ep) =
  {fname = InFile ""; line_nb = 1; bol_pos = 0; line_nb_last = -1; bol_pos_last = 0;
   bp = bp; ep = ep; }

let dummy =
  {fname = InFile ""; line_nb = 1; bol_pos = 0; line_nb_last = -1; bol_pos_last = 0;
   bp = 0; ep = 0; }