It seems like Kotlin recursion is not handled properly. This is because of the grammar using the node name simple_identifier instead of identifier like most grammars do.
jump_expression included returns as well, so changed it to explicit break and continues for now. ~Might have to look further into it later, but we will see.~
EDIT: Added tests right away, because why wait 😛
Thanks to having a test harness, I could work in a TDD-ish way this time 😄 Also added a test for Java to verify the general recursion case.
It seems like Kotlin recursion is not handled properly. This is because of the grammar using the node name
simple_identifier
instead ofidentifier
like most grammars do.jump_expression
included returns as well, so changed it to explicit break and continues for now. ~Might have to look further into it later, but we will see.~ EDIT: Added tests right away, because why wait 😛Thanks to having a test harness, I could work in a TDD-ish way this time 😄 Also added a test for Java to verify the general recursion case.