parser with string, mod operation and do-while loop parsing