add func read() & write() before semantic analyze

it's for generate intercode