Part two implemented
Lexical analyzer and RD parser