NOTE: This is a work in progress. The Objective-C output is merged in Tolc and Swift is coming soon
frontend.swift is a library that takes an AST defined by IR::IR and writes bindings to Objective-C and Swift.
frontend.swift is a part of the Tolc project.
frontend.swift can be built on Linux, MacOS, and Windows. The tests however rely on MacOS specific headers (e.g. Foundation) and is only built there. See the CI pipelines for more platform specific information..
Here is a general overview:
Requirements:
- CMake
- python3
- conan
- clang
Configure the project:
$ cmake -S. -Bbuild -G Ninja -DCMAKE_CXX_COMPILER="clang++" -DCMAKE_C_COMPILER="clang" -DCMAKE_BUILD_TYPE="Debug" -DENABLE_TESTING=ON -DENABLE_PACKAGING=ONBuild tolc:
$ cmake --build buildTest with ctest:
$ cd build
$ ctest --output-on-failureInstall with CPack:
$ cpack -G TGZ --config build/CPackConfig.cmake