Skip to content
forked from xyproto/c2go

Attempts to convert C to Go. Works on several simple examples, but not complex applications.

License

Notifications You must be signed in to change notification settings

glycerine/c2go-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C2Go 0.1

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

  • pycparser
  • ply

Improvements

If you wish to help out, here is one way:

  1. Enter the "doesnotworkyet" directory
  2. Select a c file to work on
  3. Type ../try.sh name, where name is the filename before ".c"
  4. Observe the error messages when the generated Go file doesn't compile
  5. Edit the Go file to make it compile again, to know what to work towards
  6. Edit c2go.py to make it generate a Go file that does compile for the given test case
  7. Create a pull request

Pull requests are appreciated.

Changes

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

About

Attempts to convert C to Go. Works on several simple examples, but not complex applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 62.2%
  • Python 37.2%
  • Shell 0.6%