Hi all,
I am in the phase of scanning to build a compiler. I wonder if I should read entire file content before processing? I think it should be better since my compiler may need to do some optimization later (so I dont need to reread the file). But what if the input program is kinda big, it could take lots of memory to hold the file content.
Need some more ideas and discussion.
Thanks.