A simple compiler with a hybrid of C-like and Matlab-like syntax.
(a course project done in class Programming Languages&Translators, offered by Columbia University Fall 2017)
Authors:
Kejia Chen
Tongfei Guo
Weiman Sun
Xin Chen
Acknowledgements:
- to Prof. Stephen A. Edwards for his invaluable instructions.
- to our TA Chang Liu for his helpful advice.
Documentations & Tutorials:
There is currently no official documentations or tutorials. Syntax, semantics and sample codes are described in detail in documentations/report. There are plenty of test codes in test/ if interested.
How to use:
You need to install LLVM and openCV first.
Use Compiler:
- Download source folder.
- make
- modify "compile" as following: (i). change llc-5.0 to your corresponding llc (ii) change clang++-4.0 to your corresponding c++ compiler
- use command "./compile filename" to compile exe, for example, in the demo/ folder, there is a Facelab source code "tshirt.fb", then you can do "./compile tshirt" to compile and get executable "tshirt"
demo: