20 lines · 678 B · Standard ML
RawDownload
datatype Location =    Loc of int     (* Position of the first character *)         * int     (* Position of the next character following the last one *); val getCurrentLocation : unit -> Locationand mkLoc : 'a -> Location * 'aand xLR : Location * 'a -> Locationand xL : Location * 'a -> intand xR : Location * 'a -> intand xxLR : Location * 'a -> Location * 'b -> Locationand xxRL : Location * 'a -> Location * 'b -> Locationand nilLocation : Locationand errLocation : Location -> unitand errInputName : unit -> unitand input_name : string refand input_stream : BasicIO.instream refand input_lexbuf : Lexing.lexbuf refand errorMsg : Location -> string -> 'a;