Skip to content

Commit ebeb955

Browse files
committed
Create a findlib sub-package for metaquot, so that users can use the ppx_tools library without the ppx metaquot.
1 parent 894a1ef commit ebeb955

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

META

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ description = "Tools for authors of ppx rewriters and other syntactic tools"
33
archive(byte) = "ppx_tools.cma"
44
archive(native) = "ppx_tools.cmxa"
55
requires = "compiler-libs.common"
6-
ppx = "./ppx_metaquot"
6+
7+
package "metaquot" (
8+
version = "0.1"
9+
description = "Meta-quotation: Parsetree manipulation using concrete syntax"
10+
requires = "ppx_tools"
11+
ppx = "./ppx_metaquot"
12+
)

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This package is licensed by LexiFi under the terms of the MIT license.
77

88
The tools are installed as a findlib package called 'ppx_tools'.
99
Executables are thus accessible through the ocamlfind driver (e.g.:
10-
ocamlfind ppx_tools/dumpast.exe).
10+
ocamlfind ppx_tools/dumpast).
1111

1212

1313
Ast_mapper_class
@@ -56,7 +56,7 @@ supported extensions.
5656

5757
Usage:
5858

59-
ocamlfind -c -ppx "ocamlfind ppx_tools/ppx_metaquot" my_ppx_code.ml
59+
ocamlfind -c -package ppx_tools.metaquot my_ppx_code.ml
6060

6161

6262
genlifter
@@ -104,5 +104,5 @@ produces the following class:
104104
end
105105

106106
_dumpast_ is a direct example of using _genlifter_ applied on the
107-
OCaml Parsetree definition itself. ppx_metaquot.exe is another
107+
OCaml Parsetree definition itself. ppx_metaquot is another
108108
similar example.

0 commit comments

Comments
 (0)