This takes a given string and splits it by a given delimiter, keeping track of delimiters that indicate opening and closing of nested objects.
This takes a given string and splits it by a given delimiter, keeping track of delimiters that indicate opening and closing of nested objects. The primary use case is to split by comma while ignoring commas that appear inside of parenthesis. Example:
And(True, False), Or(Not(False), False), True
should split to these values: [1] And(True, False)
[2] Or(Not(False), False)
[3] True
The string to split.
The delimiter used to split the members of the list; defaults to ','.
The delimiter used to indicate the start of a nested list; defaults to '('.
The delimiter used to indicate the end of a nested list; defaults to ')'.
The list of individual members.
A set of utility functions.