Creating a lexer from an io.Reader