// Convert a Cadabra .cdb input file to pure Python .py, by doing the // pre-processing stage. #include #include #include int main(int argc, char **argv) { if(argc<2) { std::cerr << "Usage: cadabra2python [cadabra file] [python file]\n\n"; std::cerr << "Convert a Cadabra v2 input file or notebook to a pure Python file.\n" << "If the Python file name is not given, output goes to standard out.\n"; return -1; } std::string cdb_file, python_file; int n=1; while(n