Quote (Azrad @ Aug 29 2013 11:58pm)
just some random thoughts based on what Snickerfritzer said:
perhaps look for every occurrence of "(" and ")"
generate a depth "score" for each one.
depth = 0
every time you find a "(" add 1 to the depth score and record it for that occurance
every time you find a ")" subtract 1 from the depth score
find the "(" with the largest depth value, and evaluate everything you find until you reach the next ")". Remove the "(" and the ")" then rinse repeat.
that sounds like a good idea , i ll work on that to see if i can get anything from it
what is funny when we start c is that it takes 2days to do omething like that when an average developper need like 1h30min