# Lib to parse a kotlin file (NOT to parse a file in kotlin)

**URL:** <https://discuss.kotlinlang.org/t/lib-to-parse-a-kotlin-file-not-to-parse-a-file-in-kotlin/4836>\
**Category:** Libraries\
**Created:** [October 2, 2017, 11:44pm UTC](https://discuss.kotlinlang.org/t/lib-to-parse-a-kotlin-file-not-to-parse-a-file-in-kotlin/4836 "2017-10-02T23:44:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbuisson](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@sbuisson](https://discuss.kotlinlang.org/u/sbuisson)\
**Post date:** [October 2, 2017, 11:44pm UTC](https://discuss.kotlinlang.org/t/lib-to-parse-a-kotlin-file-not-to-parse-a-file-in-kotlin/4836/1 "2017-10-02T23:44:17Z")

</div>

I search a lib (or any way) to parse a kotlin file :  
something able to tell me that the class xxx start line 566, that there is an anotation ligne 245, etc.

Thank you !

---

<div class="post-metadata">

**Author:** ![m\_thread](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/m_thread/32/3873_2.png) [@m\_thread](https://discuss.kotlinlang.org/u/m_thread)\
**Post date:** [October 3, 2017, 7:28am UTC](https://discuss.kotlinlang.org/t/lib-to-parse-a-kotlin-file-not-to-parse-a-file-in-kotlin/4836/2 "2017-10-03T07:28:12Z")

</div>

Have you looked at ANTLR?  
[www.antlr.org](http://www.antlr.org)
