optimize parser to support parsing of multiple statements
add UT for parsing of multiple statements