lexical analyzer to use reader