From f3d1eff69850d379bad5ab8f1cdadb7f5d5c7eca Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Tue, 11 Oct 2016 13:23:26 +0200 Subject: More on making the lexer more functional (continuing b8ae2de5 and 8a8caba3). - Adding cLexer.current_file to the lexer state, i.e. making it a component of the type "coq_parsable" of lexer state (it was forgotten in b8ae2de5 and 8a8caba3). - Inlining save_translator/restore_translator which have now lost most of their substance. --- parsing/cLexer.mli | 8 -------- 1 file changed, 8 deletions(-) (limited to 'parsing/cLexer.mli') diff --git a/parsing/cLexer.mli b/parsing/cLexer.mli index 71edda760..f69d95335 100644 --- a/parsing/cLexer.mli +++ b/parsing/cLexer.mli @@ -10,14 +10,6 @@ val add_keyword : string -> unit val remove_keyword : string -> unit val is_keyword : string -> bool -(** [get_current_file fname] returns the filename used in locations emitted by - the lexer *) -val get_current_file : unit -> string - -(** [set_current_file fname] sets the filename used in locations emitted by the - lexer *) -val set_current_file : fname:string -> unit - val check_ident : string -> unit val is_ident : string -> bool val check_keyword : string -> unit -- cgit v1.2.3