parser: changed get operator to create new token

modified get operator function to create new token and return a token
pointer (shared pointer) only when a valid token is found else a default
token pointer is returned; and cleaned up flow of this function

changed call to get operator function in function operator function
removed member token initialization and token member