More work on output and some cleanup of temporary cout messages.
This commit is contained in:
parent
c6c0be016e
commit
cc904693ab
@ -50,7 +50,6 @@ namespace jet {
|
|||||||
splitName.split(".");
|
splitName.split(".");
|
||||||
if(splitName.getList().size() == 1)
|
if(splitName.getList().size() == 1)
|
||||||
return variables[splitName[0]];
|
return variables[splitName[0]];
|
||||||
std::cout << "session var: " << splitName << std::endl;
|
|
||||||
return getSessionVariable(splitName);
|
return getSessionVariable(splitName);
|
||||||
}
|
}
|
||||||
throw coreutils::Exception("expected variable name or type designator.");
|
throw coreutils::Exception("expected variable name or type designator.");
|
||||||
|
@ -11,19 +11,20 @@ int main(int argc, char **argv) {
|
|||||||
script.read();
|
script.read();
|
||||||
coreutils::ZString data = script.asZString();
|
coreutils::ZString data = script.asZString();
|
||||||
data.goeol();
|
data.goeol();
|
||||||
|
|
||||||
|
jet::Global global;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
jet::Global global;
|
|
||||||
coreutils::MString out;
|
coreutils::MString out;
|
||||||
jet::__jet *jet = new jet::__jet(data, out, global);
|
jet::__jet *jet = new jet::__jet(data, out, global);
|
||||||
delete jet;
|
delete jet;
|
||||||
global.dump();
|
|
||||||
std::cout << "----------------------" << std::endl;
|
std::cout << "----------------------" << std::endl;
|
||||||
global.outputHeaders();
|
global.outputHeaders();
|
||||||
std::cout << out;
|
std::cout << out;
|
||||||
}
|
}
|
||||||
catch(coreutils::Exception e) {
|
catch(coreutils::Exception e) {
|
||||||
std::cout << "Error caught: " << e.text << std::endl;
|
std::cout << "Error caught: " << e.text << std::endl;
|
||||||
|
global.dump();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user