Replace parser with Kotlin version