]> Creatis software - bbtk.git/blob - kernel/appli/bbs2cpp/bbs2cpp.cxx
=== MAJOR RELEASE ====
[bbtk.git] / kernel / appli / bbs2cpp / bbs2cpp.cxx
1 #include "bbtkInterpreter.h"
2 #include "bbtkUtilities.h"
3
4 int main(int argc, char* argv[])
5 {  
6   if (argc<2) return 1;
7
8   std::string file,path;
9   file = bbtk::Utilities::ExtractScriptName(argv[1],path);
10   file += ".h";
11   bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file);
12
13   I->SetThrow(true);
14
15   try
16     {
17       I->InterpretFile(argv[1]);
18     }
19   catch (bbtk::Exception e)
20     {
21       e.Print();
22     }
23
24   return 0;
25 }
26          
27 // EOF
28