https://github.com/nathanreb/ppx_there
OCaml PPX extension for on-steroid __MODULE__
https://github.com/nathanreb/ppx_there
Last synced: over 1 year ago
JSON representation
OCaml PPX extension for on-steroid __MODULE__
- Host: GitHub
- URL: https://github.com/nathanreb/ppx_there
- Owner: NathanReb
- License: bsd-2-clause
- Created: 2019-03-14T20:17:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-26T12:05:17.000Z (about 7 years ago)
- Last Synced: 2025-01-22T00:36:48.053Z (over 1 year ago)
- Language: OCaml
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ppx_there
OCaml PPX extension for on-steroid `__MODULE__`.
[](https://travis-ci.com/NathanReb/ppx_there)
## Overview
`ppx_there` turns the `[%there]` extension points into the fully qualified path of the value in
which they are found, as a string.
For example, the following code in a `a.ml` file:
```ocaml
module B = struct
let c = [%there]
end
```
Is expanded into:
```ocaml
module B = struct
let c = "A.B.c"
end
```