#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" " theexpr=($[theexpr])\n" " theexpr2($[theexpr2])\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" " \n" " \n" " \n" " $[test$[ix$[ix1]]$[iz]]\n" " \n" " \n" " 789\n" " \n" " 123\n" " \n" " 456\n" " \n" " \n" " \n" " \n" " -->#[ix]<--\n" " \n" " \n" " $[lsi]\n" " \n" " $[filex]\n" " \n" "\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; // global.dump(); } catch(coreutils::Exception e) { std::cout << "Error caught: " << e.text << std::endl; } }