working on handwritten lexical scanner and parser