Refactor and rewrite analyzer module with Zephir http://zephir-lang.com/