Lexical parser written in c language