marekjm / psychec

Hindley-Milner type inference engine for C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Psyche-c

Psyche-c is a compiler for incomplete C code. It features a Hindley/Milner-inspired type inference engine for C. You can try it online here.

Prerequisites

  • Cmake
  • C++14 compiler
  • Haskell Stack
  • Python

Installing and running

cmake CMakeLists.txt  
make  
cd solver  
stack setup  
stack build  
cd ..  
python Reconstruct.py path/to/file.c

About

This is a research project. While we strive to keep the code clean and to make the tool easily accessible, this is an academic effort. Neverless, feel free to provide feedback or to report bugs.

About

Hindley-Milner type inference engine for C

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 85.4%Language:C 7.1%Language:Haskell 4.4%Language:SourcePawn 2.6%Language:CMake 0.3%Language:Python 0.1%Language:Shell 0.0%