Git Repo

The current working state of the Tuplex compiler is availabile on GitHub:

https://github.com/TuplexLanguage/tuplex

I have not yet tested to build it on other systems than my development system, but if you have a ubuntu 14 system or are an experienced developer it should be easy to get it to build.

These are the prerequisite tools, and the version I currently build with:

cmake 2.8.12.2
flex 2.5.35
bison 3.0.2
llvm 3.5
c++11 compilation tool chain (I mostly use Clang)

As of LLVM version 3.5, I've also needed to install additional libraries in order to get the project to link. Other installations may or may not need to do this, anyhow these are the apt commands that I ran:

sudo apt-get install zlib1g-dev
sudo apt-get install libedit-dev


If you have the above installed, simply clone the git project, cd to its base directory and run these commands to build the compiler:

cmake .
make

(If any tool, library or include isn't found, see if the paths in proto/src/CMakeLists.txt need to be adapted for your setup. Any feedback on this is welcome!)


These might be the first files you'd like to check out:

proto/bin/txc
The compiler. Run with -h to print the command line usage.

proto/txb
Build script that compiles and links a tuplex program into an executable.

proto/test/helloworld.tx
An example program that prints "Hello, world!".
There are also a bunch of other test programs under test/.

No comments:

Post a Comment