Class SimpleKotlinParser

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ParsedCall parseFunctionExpression(String input) Parses a function call from a text string into its components.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleKotlinParser

        SimpleKotlinParser()
    • Method Detail

      • parseFunctionExpression

         final ParsedCall parseFunctionExpression(String input)

        Parses a function call from a text string into its components. Uses a robust state machine to correctly handle:

        • Strings with commas and escaped quotes/backslashes

        • Nested parentheses inside arguments

        • Optional whitespace and trailing commas