Minor change in Parser class. Added BNF grammar in doc.