Changed the while loop to a for loop in expression_parser.c for concise processing