mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
read file to be compiled from command line arguments
This commit is contained in:
parent
d20e850d31
commit
d02257ca88
@ -17,7 +17,7 @@ int main (int argc, char **argv)
|
|||||||
Compiler::StreamErrorHandler errorHandler (std::cout);
|
Compiler::StreamErrorHandler errorHandler (std::cout);
|
||||||
Compiler::FileParser parser (errorHandler, context);
|
Compiler::FileParser parser (errorHandler, context);
|
||||||
|
|
||||||
std::ifstream file ("test.mwscript");
|
std::ifstream file (argc>1 ? argv[1] : "test.mwscript");
|
||||||
Compiler::Scanner scanner (errorHandler, file);
|
Compiler::Scanner scanner (errorHandler, file);
|
||||||
|
|
||||||
scanner.scan (parser);
|
scanner.scan (parser);
|
||||||
|
Loading…
Reference in New Issue
Block a user