# Ppxlib by example?

**URL:** <https://discuss.ocaml.org/t/ppxlib-by-example/12461>\
**Category:** Learning\
**Created:** [June 22, 2023, 5:09pm UTC](https://discuss.ocaml.org/t/ppxlib-by-example/12461 "2023-06-22T17:09:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeroexcuses](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/zeroexcuses/32/1692_2.png) [@zeroexcuses](https://discuss.ocaml.org/u/zeroexcuses)\
**Post date:** [June 22, 2023, 5:09pm UTC](https://discuss.ocaml.org/t/ppxlib-by-example/12461/1 "2023-06-22T17:09:21Z")

</div>

I’m aware of [ppxlib/examples at main · ocaml-ppx/ppxlib · GitHub](https://github.com/ocaml-ppx/ppxlib/tree/main/examples) but I’m looking for something with more than 2 examples.

My favorite resource for learning Rust was [Introduction - Rust By Example](https://doc.rust-lang.org/rust-by-example/) where instead of reading the manual, one types in \< 500 line examples for each language feature.

I am wondering if there is a similar resource for ppxlib, where instead of trying to digest the manual upfront, the resource provides lots of \< 500 line example showcasing features of ppxlib.

---

<div class="post-metadata">

**Author:** ![oemmerson](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/oemmerson/32/3810_2.png) [@oemmerson](https://discuss.ocaml.org/u/oemmerson)\
**Post date:** [June 27, 2023, 11:49am UTC](https://discuss.ocaml.org/t/ppxlib-by-example/12461/2 "2023-06-27T11:49:48Z")

</div>

I don’t know of something as comprehensive as what you would like. However I would recommend reading (and re-reading) [this tutorial](https://ocaml-explore.netlify.app/workflows/meta-programming-with-ppx/) by @patricoferris . I’ve found it the most approachable and comprehensible introduction to the PPX ecosystem. If you read the official documentation afterwards have Patricks guide off to the side to refer back to.
