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(".");
|
||||
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.");
|
||||
|
@ -12,18 +12,19 @@ int main(int argc, char **argv) {
|
||||
coreutils::ZString data = script.asZString();
|
||||
data.goeol();
|
||||
|
||||
try {
|
||||
jet::Global global;
|
||||
|
||||
try {
|
||||
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;
|
||||
global.dump();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user