What would be the best way of parsing a list? If there's no function, here's an algorithm I've written. My problem is that I don't know how to do this in Lua.
Thanks for the help. :)
Is the delim not in the string?
True:
return the string as a table
False:
size = the number of times the delim is found in the string + 1
allocate a table to `size' elements
While there is a delim in the string:
store all the characters before the first delim in the next open element
remove everything up to and including the first delim in the string
return the table
Thanks for the help. :)