refactor compiling LET statement