We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 482c722 commit d528264Copy full SHA for d528264
src/bin/lpython.cpp
@@ -1122,9 +1122,17 @@ namespace wasm {
1122
compiler_options.use_colors = true; \
1123
compiler_options.indent = true; \
1124
Allocator al(4*1024); \
1125
- LFortran::LocationManager lm; \
1126
LFortran::diag::Diagnostics diagnostics; \
1127
- lm.in_filename.push_back("input");
+ LFortran::LocationManager lm; \
+ { \
1128
+ LFortran::LocationManager::FileLocations fl; \
1129
+ fl.in_filename = "input.txt"; \
1130
+ std::ofstream out("input.txt"); \
1131
+ out << input; \
1132
+ lm.files.push_back(fl); \
1133
+ lm.init_simple(std::string(input)); \
1134
+ lm.file_ends.push_back(strlen(input)); \
1135
+ }
1136
1137
1138
0 commit comments