Move parser to Kotlin
Kotlin migration continues...