- modified codeparser that the patterns are not hardcoded