More work on output and some cleanup of temporary cout messages.

This commit is contained in:
brad Arant 2024-09-26 21:21:21 -07:00
parent c6c0be016e
commit cc904693ab
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,6 @@ namespace jet {
splitName.split(".");
if(splitName.getList().size() == 1)
return variables[splitName[0]];
std::cout << "session var: " << splitName << std::endl;
return getSessionVariable(splitName);
}
throw coreutils::Exception("expected variable name or type designator.");

BIN
jet-2.0

Binary file not shown.

View File

@ -11,19 +11,20 @@ int main(int argc, char **argv) {
script.read();
coreutils::ZString data = script.asZString();
data.goeol();
jet::Global global;
try {
jet::Global global;
coreutils::MString out;
jet::__jet *jet = new jet::__jet(data, out, global);
delete jet;
global.dump();
std::cout << "----------------------" << std::endl;
global.outputHeaders();
std::cout << out;
}
catch(coreutils::Exception e) {
std::cout << "Error caught: " << e.text << std::endl;
std::cout << "Error caught: " << e.text << std::endl;
global.dump();
}
}