THOM BOHK
2011-06-11 21:46:50 UTC
Alright, so if no input file is specified, we read from cin.
I'm assuming, then, the user should be able to input an arbitrarily
long chunk of input where some lines are #include directives, specify
an end to his/her input, and have that chunk of input be processed the
same way a specified input file would.
How can the user specify that they are done their input, so that it
can be passed of to processOneFile? ctrl-D for EOF exits the include
program, so that's no good....
the only real solution I can see is that user input can be of one line
with an include directive on it?
I'm assuming, then, the user should be able to input an arbitrarily
long chunk of input where some lines are #include directives, specify
an end to his/her input, and have that chunk of input be processed the
same way a specified input file would.
How can the user specify that they are done their input, so that it
can be passed of to processOneFile? ctrl-D for EOF exits the include
program, so that's no good....
the only real solution I can see is that user input can be of one line
with an include directive on it?