Parameter WithPP.1-PP
val initial_state : stateInitial state of the preprocessor.
val update : state -> string -> int -> string -> state * string * int * boolupdate st name lnum linetakes as input the statestof the preprocessor, the file namename, the number of the next input linelnumand the next input linelineitself. It returns a tuple of the new state, the new file name, the new line number, and a boolean. The new file name and line number can be used to implement line number directives. The boolean istrueif the line should be part of the input (i.e. it is not a specific preprocessor line) andfalseif it should be ignored. The function may raisePreprocessor_errorin case of error.
val check_final : state -> string -> unitcheck_final st namecheck thatstindeed is a correct state of the preprocessor for the end of input of filename. If it is not the case, then the exceptionPreprocessor_erroris raised.