# I created an OCaml grammar for ANTLR4 (Earley parser compatible)

**URL:** <https://discuss.ocaml.org/t/i-created-an-ocaml-grammar-for-antlr4-earley-parser-compatible/16246>\
**Category:** Community\
**Created:** [March 10, 2025, 6:14am UTC](https://discuss.ocaml.org/t/i-created-an-ocaml-grammar-for-antlr4-earley-parser-compatible/16246 "2025-03-10T06:14:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ao\_wang](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/ao_wang/32/5842_2.png) [@ao\_wang](https://discuss.ocaml.org/u/ao_wang)\
**Post date:** [March 10, 2025, 6:14am UTC](https://discuss.ocaml.org/t/i-created-an-ocaml-grammar-for-antlr4-earley-parser-compatible/16246/1 "2025-03-10T06:14:06Z")

</div>

Hi everyone,

I’ve created an ANTLR4 grammar for OCaml that supports Earley parsing.  
Feel free to use it, and any feedback or contributions are welcome!

GitHub Repository:

> **[GitHub - WangAo0311/Antlr4-ocaml-earley-parser-grammar](https://github.com/WangAo0311/Antlr4-ocaml-earley-parser-grammar)**
>
> Contribute to WangAo0311/Antlr4-ocaml-earley-parser-grammar development by creating an account on GitHub.

---

_[View the full topic](https://discuss.ocaml.org/t/i-created-an-ocaml-grammar-for-antlr4-earley-parser-compatible/16246)._
