IFClite TypeScript API
    Preparing search index...

    Function splitStepTopLevel

    • Split STEP parameter text at commas that are not inside parentheses or brackets, a string literal, or a /* ... */ comment (#7785).

      The one TS splitter for text that is not a whole record. A literal ends by stepStringLiteralEnd ('' and a \S\' PAGE operand stay inside, #7589), and a comment is skipped atomically, so a ,, (, ) or ' in either is not structure. An unterminated literal or comment runs to the end of the text. Each comment collapses to one space so the tokens around it are not spliced (5/* c */6 is not 56). Items are trimmed; the last item is always returned, even when empty (callers decide whether a trailing empty item is a value).

      Parameters

      • text: string

      Returns string[]