crystal-lang / clang.cr Goto Github PK
View Code? Open in Web Editor NEWlibclang bindings for crystal (including automatic C bindings generator)
License: Other
libclang bindings for crystal (including automatic C bindings generator)
License: Other
./c2cr -I/usr/include/tensorflow/c/c_api.h --remove-enum-prefix > /tmp/test.cr
Nil assertion failed (Exception)
0x557950334ef0: not_nil! at /usr/lib/crystal/class.cr 65:0
0x5579502f573a: __crystal_main at /home/unshadow/Desktop/git-projects/clang.cr/samples/c2cr.cr 0:3
0x557950305069: main at /usr/lib/crystal/main.cr 12:15
0x7fc688c6ef6a: __libc_start_main at ??
0x5579502f48ea: _start at ??
0x0: ??? at ??
Attached c header file to tests
tensor.zip
For me it's much cooler then the actual clang bindings :)
@ysbaddaden So cool that you made this!
Does it mean we can delete https://github.com/crystal-lang/crystal_lib ? It has many bugs and it's not feature complete. Plus it only has the necessary features to generate (incomplete) bindings, but it's not general clang bindings.
I would personally like to delete that project because we don't have much time to maintain it.
It would be great to update the lookup of llvm-config of https://github.com/crystal-lang/clang.cr/blob/master/src/lib_clang.cr to the same logic in https://github.com/crystal-lang/crystal/blob/master/src/llvm/ext/find-llvm-config .
Maybe the Link attribute should be updated regarding crystal-lang/crystal#8972
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.