Hello everyone, I have a small question.
I'm making a code editor (not for a big programming language) and I need some help on splitting the opened file.
The said file has such structure:
#Comments may occur in the code
["values", other values, [more values]" more values],
This was just one tuple of a file that may contain a thousand.
It would look like this:
["values", other values, [more values], more values],
["values", other values, [more values]" more values],
["values", other values, [more values], more values],
But there might be new lines throughout the code, such as:
["values",
other values, [more
values], more values],
The whole point is to print every value in a text box and include writing options, but for now my only problem is splitting the tuples correctly.
Could anyone give me hints on how to split such a thing properly? I'll be very, very grateful.