v0.1.0-proto
matlab2r attempts to be a fully-featured transpiler, from the MATLAB language to the R language. It is currently a work in progress.
The matlab2r project uses the CMake build system. This project also uses C++14, so make sure your compiler supports the C++14 standard. clang 3.4 or greater, and gcc 4.9 or greater should both compile this project OK.
Make sure that these are in a place that CMake can find them.
- Flex
- Bison
- Boost (I use 1.60, but only for filesystem utilities. Most versions should work fine.)
- Make a directory called "build" in the project root.
- Open a terminal and navigate to the build directory.
- Run
cmake ..
. Hopefully everything will work.- Note: By default, the CMake project builds with a Git commit hash baked in. If you don't want this, pass
-DUSE_GIT_VERSIONING=0
to your CMake command.
- Note: By default, the CMake project builds with a Git commit hash baked in. If you don't want this, pass
- Run
make
. Optionally, if you have some extra CPU cycles to spare, you can runmake -jX
, where X is the number of jobs you want to run simultaneously.
Provided that make
succeeded, there should be a matlab2r executable in the build directory. Yay!
Coming soon
ISC License, see the LICENSE file.