fixed the parser. now it does not goes into an infinte loop if an expression is missing