🚠 Attempts to convert C to Go. Works on several simple examples, but not complex applications.
C Python Shell
Latest commit de9c496 Jul 28, 2016 @xyproto Minor changes
* Slightly more user friendly test scripts
* Moved one c file to "doesnotworkyet", since it stopped working
Permalink
Failed to load latest commit information.
doesnotworkyet Minor changes Jul 28, 2016
wiptxt
works Minor changes Jul 28, 2016
.gitignore Minor changes Mar 15, 2014
LICENSE Added the 3-clause BSD license Nov 7, 2011
README.md Improve documentation Nov 12, 2015
c2go.py Improve documentation Nov 12, 2015
clean.sh Minor changes Jul 28, 2016
compile.sh
try.sh Minor changes Jul 28, 2016

README.md

C2Go 0.2

C2Go is based on the c-to-c.py example from pycparser by Eli Bendersky, and uses pycparser extensively.

The C examples are from: http://www.cis.temple.edu/~ingargio/cis71/code/.

Requirements

  • python 2 or python 3
  • pycparser
  • ply

Installation

c2go.py can be installed as ie. /usr/bin/c2go.

Usage

The utility takes a filename as the first argument.

The parts of the C code that C2GO is unable to translate will be marked with a /* C2GO: ? */ comment in the resulting output.

Changes

  • 2011-08-30 - Initial commit
  • 2013-04-29 - Update for Go 1
  • 2014-05-07 - Minor changes
  • 2015-11-12 - Minor fix

General information