bbs2cpp.cxx
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "bbtkInterpreter.h"
00021 #include "bbtkUtilities.h"
00022
00023 int main(int argc, char* argv[])
00024 {
00025 if (argc<2) return 1;
00026
00027 std::string file,path;
00028 file = bbtk::Utilities::ExtractScriptName(argv[1],path);
00029 file += ".h";
00030 bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file);
00031
00032 I->SetThrow(true);
00033
00034 try
00035 {
00036 I->InterpretFile(argv[1]);
00037 }
00038 catch (bbtk::Exception e)
00039 {
00040 e.Print();
00041 }
00042
00043 return 0;
00044 }
00045
00046
00047