added grammar.docx
updated table.h correspond to the transition table