I went looking for a tool like this, but to my surprise, it hasn't been built yet. O_o
-
java (jdk)
-
node-webkit
-
nw-gyp
-
nan (v2+)
-
ant
-
antlr
-
create a shortlink to your files to convert. Example: ln -s ../soulsifter/src/soulsifter resources
-
This is currently a work in progress, but once it meets the needs for my current project, I'll most likely cease work until I finish that project.
-
I wrote just enough to wrap the classes I needed. For one, that means it's written mostly like a script, and less like a well structured program. It also means this is by no means an exhaustive translation tool. However, it's simple enough that you should be able to plug the holes to fit your needs.
-
I do not know antlr. I read just enough to build this grammar to work for me. I could have probably used antlr3, as I believe there is a C++ grammar for it, but after testing the C grammar on my header files, I realized that any complete grammar would be overkill, and writing my own would be much easier when building the translation listeners.
-
Please submit patches if you used/improved this. Or, let me know if you have run across a better tool, and I'll point to it from this doc.
ant all
note: that I haven't taken the time to split this out for other projects.
You can view the output of this program by checking out the _*wrap files in my SoulSifter project. https://github.com/broken/soulsifter/tree/master/src/soulsifter
ant -Dfile=file.h gui