fix a bug that parser can't deal with the quote correctly in function get_token, add a virtual function in virtual class Parser, add some blocks to handle a ended session