added hash symbol (#) to the grammar; added a fall through case for empty line