package earley
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
md5=6b666c0392dc5b153f81c27d6ef49b12
    
    
  sha512=a81d2bcf05088a3aaa5c3c0fb3a38306061a624ddf6d8bbefee1b4a17d7a5961ad1b12c0af9bd8dce86aa14b6f05f1956b3f7b5731f3c552bec7f4550182c398
    
    
  doc/earley.core/Earley_core/Earley/WithPP/argument-1-PP/index.html
Parameter WithPP.PP
val initial_state : stateInitial state of the preprocessor.
update st name lnum line takes as input the state st of the preprocessor, the file name name, the number of the next input line lnum and the next input line line itself. 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 is true if the line should be part of the input (i.e. it is not a specific preprocessor line) and false if it should be ignored. The function may raise Preprocessor_error in case of error.
val check_final : state -> string -> unitcheck_final st name check that st indeed is a correct state of the preprocessor for the end of input of file name. If it is not the case, then the exception Preprocessor_error is raised.