Skip to content

Add skeleton for PPX derivers #1

Description

@craigfe

Using the ppxlib workflow described in https://tarides.com/blog/2019-05-09-an-introduction-to-ocaml-ppx-ecosystem. In particular:

  • lib/deriver.ml with a Located functor consuming an Ast_builder.S;
  • deriver/ppx_<project>.ml that registers {sig,str}_type_decl_generator functions taken from the library using first-class modules;
  • test/deriver/{errors,passing}/*.{ml,expected} files with corresponding gen_dune_rules.ml script and a dune promote workflow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions