#include #include #include "Global.h" #include "Exception.h" #include "__jet.h" int main(int argc, char **argv) { coreutils::ZString data("\n" " This is a comment and should not show up in the output.\n" " \n" " \n" " \n" " \n" " this is the value store in #[name].\n" " this is the value store in #[name].\n" " another container value\n" " >>>$[noeval]<<<\n" " >>>$[thename]<<<\n" " local: >>>#[name]<<<\n" " \n" " \n" " 789\n" " \n" " 123\n" " \n" " 456\n" " \n" " \n" " \n" " \n" " -->#[ix]<--\n" " \n" " \n" " $[ls]\n" " \n" " $[file]\n" " \n" "\n"); coreutils::ZString data2("\n" " \n" " XXX\n" " \n" " YYY\n" " \n" "\n"); // coreutils::ZString data("ABCHIJXYZ\n"); std::cout << "---------\n" << data << "----------\n" << std::endl; try { jet::Global global; coreutils::MString out; jet::__jet *jet = new jet::__jet(data, out, global); delete jet; std::cout << ">>-------" << std::endl << out << std::endl << "<<------" << std::endl; // global.dump(); } catch(coreutils::Exception e) { std::cout << "Error caught: " << e.text << std::endl; } }