restore operator 'foreach'

* remove function compiler::currentToken()

Time: 643 ms, Memory: 24.75Mb

Change-Id: I08a75d86a95a0ce3c12c879231cbbad2ee15218c