Blurring the Language Lines
Tolc makes C++ callable from other languages


                
            

                
            

Built in Support for CMake
Works without changes on Linux, MacOS, and Windows

# CMakeLists.txt

find_package(tolc
  CONFIG REQUIRED
)

tolc_create_bindings(
  # Library to translate
  TARGET MyCppLib
  # Language to translate to
  LANGUAGE python
  # Bindings output directory
  OUTPUT python-bindings
)
    

Built in Support for CMake
Works without changes on Linux, MacOS, and Windows

Putting the Developer Experience First
Tolc creates human readable, industry standard bindings

// Bindings generated by Tolc
#include <MyCppLib.hpp>

#include <pybind11/pybind11.h>

namespace py = pybind11;

PYBIND11_MODULE(MyCppLib, MyCppLib) {
  auto MyCppLib_Model = MyCppLib.def_submodule("Model");
  MyCppLib_Model.def("getCity", &Model::getCity, "");
}
        

Open Source
All the source code is available on Github