Closed vlad0337187 closed 6 years ago
Hey Vladislav,
Of course. If you need a working example check the nim directory of my ExCo editor: https://github.com/matkuki/ExCo/tree/master/nim
The quick rundown of the process is:
If you check the nim_styling.nim and nim_lexers.nim files a bit closer you will see that I tried to make the wrapper be usable as similar as possible to the C API (same or similar function/type/... names).
You can try to build the code in the above link by running python3 build.py. It works on Windows, to make it work on Linux, change line 19 in setup.py to point to your system's Nim installations lib directory. I do not have the option of testing it on MacOS, but I can help you troubleshoot, if you need.
If you need any more information, let me know. Matic
@matkuki , thank you very much, I understood.
Hello.
Can this wrapper be used for writing python extensions (which will be compiled to .so files, which are imported by Python) ?
(just like Cython does: it compiles to files, which can be imported as general Python modules)
Thank you.
Best regards, Vladislav.