A copy from http://code.google.com/p/expression-analyzer/