parser: use break and infinite loops