logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Pparse - Driver for the parser and external preprocessors.

Documentation

       Module Pparse
        : sigend

       Driver for the parser and external preprocessors.

       Warning: this module is unstable and part of Compiler_libs .

       typeerror =
        | CannotRun ofstring
        | WrongMagic ofstringexceptionErroroferrorvalpreprocess : string->stringvalremove_preprocessed : string->unittype'aast_kind =
        | Structure :Parsetree.structureast_kind
        | Signature :Parsetree.signatureast_kindvalread_ast : 'aast_kind->string->'avalwrite_ast : 'aast_kind->string->'a->unitvalfile : tool_name:string->string->(Lexing.lexbuf->'a)->'aast_kind->'avalapply_rewriters : ?restore:bool->tool_name:string->'aast_kind->'a->'a

       If restore=true (the default), cookies set by external rewriters will be kept for later calls.

       valapply_rewriters_str : ?restore:bool->tool_name:string->Parsetree.structure->Parsetree.structurevalapply_rewriters_sig : ?restore:bool->tool_name:string->Parsetree.signature->Parsetree.signaturevalreport_error : errorFormat_doc.format_printervalreport_error_doc : errorFormat_doc.printervalparse_implementation : tool_name:string->string->Parsetree.structurevalparse_interface : tool_name:string->string->Parsetree.signaturevalcall_external_preprocessor : string->string->stringvalopen_and_check_magic : string->string->in_channel*bool

OCamldoc                                           2025-06-12                                         Pparse(3o)

Module

       Module   Pparse

Name

       Pparse - Driver for the parser and external preprocessors.

See Also