Implement multiline parser.