Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 27 Apr 2009 21:43:38 +0200
Hi list,
maybe you recognized my mail yesterday and Andreas' answer (see below). As I am not a pro, I will need more than 15 minutes.

But that is ok. I just thought, whether it wouldn't be a nice thing, if we do a little contest just for fun? Who writes the most efficient/shortest code to parse a special string (see below) into a table? I know, it is no really hard task, but so beginners also have a chance (and fun!!!). Let's say, in one week, all participants send there code here to the list and the we all (or Andreas) elects the winner. The prize is fame and fun.

And maybe this source code could help other HW programmers to improve their projects. And the winner is allowed to set a new (more useful/interesting?) task. What do you think? Well, if you find this ridiculous, no problem.
Ah yes, and I think of this string which should be a nice Hollywood table in the end:
Code: Select all
string$ = {x = 100, y = 50, {10, 11, {12, {13}, z = 30}, [6] = 16, 14},
15, obj = "Cube"}
If you have better suggestions, let me/us know.
So: happy coding!
Greetings Micha