Update parser.cpp

added comments, and changed an #if to be less restrictive