#include #include int main(int argc, char ** argv) { typedef ttmath::Big MyBig; ttmath::Parser parser; std::string all_input; for(int i=1 ; i 1 ) all_input += ' '; all_input += argv[i]; } std::cout << all_input << " = "; ttmath::ErrorCode err = parser.Parse(all_input); if( err == ttmath::err_ok ) { for(size_t i=0 ; i < parser.stack.size() ; ++i) { if( i > 0 ) std::cout << " ; "; std::cout << parser.stack[i].value; } std::cout << std::endl; } else { std::cout << "error: " << static_cast(err) << std::endl; } return 0; }