Refactor CodeParser module

Move macro parsing codes into MacroParser module, and let CodeParser
MacroParser.