|Number of watchers on Github||102|
|Number of open issues||45|
|Average time to close an issue||4 months|
|Average time to merge a PR||5 days|
|Open pull requests||6+|
|Closed pull requests||4+|
|Last commit||about 2 years ago|
|Repo Created||almost 6 years ago|
|Repo Last Updated||about 2 years ago|
|Organization / Author||nim-lang|
|Do you use c2nim? Leave a review!|
|View open issues (45)|
|View c2nim activity|
|View on github|
|Fresh, new opensource launches 🚀🚀🚀|
Trendy new open source projects in your inbox! View examples
c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand after the translation process. c2nim is no real compiler!
Please see the manual here.
Install https://github.com/nim-lang/nimble#installation, clone this
repository and run
nimble build in your checkout.
c2nim is preliminary meant to translate C header files. Because of this, the preprocessor is part of the parser. For example:
#define abc 123 #define xyz 789
Is translated into:
const abc* = 123 xyz* = 789
c2nim is meant to translate fragments of C code and thus does not follow include files. c2nim cannot parse all of Ansi C and many constructs cannot be represented in Nim: for example duff's device cannot be translated to Nim.