package ppxlib

  1. Overview
  2. Docs
Base library and tools for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

0.7.0.tar.gz
sha256=278c4dfed19ff3f21e65097e66ce154f47f1bf82098fc494d80536509cfebcd7
md5=8ecc9f9c42245334be543f77900bc1b9

doc/ppxlib.ast/Ppxlib_ast/Syntaxerr/index.html

Module Ppxlib_ast.Syntaxerr

Auxiliary type for reporting syntax errors

type error =
  1. | Unclosed of Warnings.loc * string * Warnings.loc * string
  2. | Expecting of Warnings.loc * string
  3. | Not_expecting of Warnings.loc * string
  4. | Applicative_path of Warnings.loc
  5. | Variable_in_scope of Warnings.loc * string
  6. | Other of Warnings.loc
  7. | Ill_formed_ast of Warnings.loc * string
  8. | Invalid_package_type of Warnings.loc * string
exception Error of error
exception Escape_error
val report_error : Format.formatter -> error -> unit
  • deprecated

    Use Location.error_of_exn, Location.report_error.

val location_of_error : error -> Warnings.loc
val ill_formed_ast : Warnings.loc -> string -> 'a
OCaml

Innovation. Community. Security.