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 before and after the translation process.
MIT License
502
stars
62
forks
source link
handle __attribute__ pragmas in struct bodies, more pointer decls, etc #252
Ok, I slimmed down the large test file and cherry picked a some of the examples from the running
cc -E
.This includes glorious C examples like:
I honestly still can't grok the
signal
one. cdecl.org explains it as:Which seems to match the new output: