Skip to content

Tongfei-Guo/Facelab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facelab

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:

  1. to Prof. Stephen A. Edwards for his invaluable instructions.
  2. 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:

  1. Download source folder.
  2. make
  3. modify "compile" as following: (i). change llc-5.0 to your corresponding llc (ii) change clang++-4.0 to your corresponding c++ compiler
  4. 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:

  1. Some simply plot function write in Facelab plotting a cubic function:
    plot_cubic
  2. Apply built-in filter to a bird image:
    plot_cubic
  3. Auto-locate face and draw a square around it:
    face_locate
  4. Auto-locate the face of Prof.Edwards, and put a nerd tshirt right below his face.
    draw_square

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 66.6%
  • HTML 18.9%
  • OCaml 11.6%
  • JavaScript 2.0%
  • C++ 0.6%
  • CSS 0.2%
  • Other 0.1%