-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add CastXML infrastructure. #275
base: master
Are you sure you want to change the base?
Conversation
Infrastructure to add CastXML [1] support as a parser. It is based of the GCC-XML parser infrastructure. CastXML is a Clang-based replacement for GCC-XML. More changes are required to make the test suite pass. [1] https://github.com/CastXML/CastXML
Thanks @thewtex! I'll try playing around with this to make it pass the test suite. |
But also, if anyone else wants to pick this up that'd be awesome! |
Gonna take a stab and see if I can help! Also, here's a handy link with prebuilt binaries of CastXML for Mac, Linux and Windows so you don't need to go through the effort of compiling it yourself: |
Created a pull request to your pull request! thewtex#1 Adds another commandline option to castxml. |
Also @scopatz I don't understand the internals of XDress enough yet to say, but would it be acceptable if PyGCCXML was used for parsing instead of the hand rolled parser? Would be handy, as it supports castxml now. |
Hi @empyrical! Thanks for taking a stab at this! Sorry for my delayed reply. And yes, it is acceptable to move to PyGCCXML. That project did not exist (If I remember my dates correctly) when the bulk of xdress was written. |
Anything that improves this project, I am all for and happy to help support. |
Awesome! BTW, do you know which version of Linux or Mac OS you were using when the |
I don't remember exactly. It is probably Ubuntu 12.04 - 13.04, and I think that it was gcc 4.6, 4.7, 4.8. I never worked on mac, personally. |
Thanks! Gave that a go (had vms of both 12 and 13) and all had the same error when compiling the discovery example:
(got the same err with 2.7) Will have to check out what's going on later when I have more time. Merry xmas! |
Hmm, do you know which version of Cython the tests last passed with? Maybe something changed in Cython |
I do not, sadly. Probably around 0.19 or so. |
Gave it a go with Cython 0.20 and it works great! My suspicion is that the PEP8 Names feature works in some way that works differently in later Cython versions. I'll take a crack at getting pygccxml ported over first, then I'll see what on Earth is goin' on there after that 😄 |
Haha OK great! |
Infrastructure to add CastXML [1] support as a parser. It is based of
the GCC-XML parser infrastructure. CastXML is a Clang-based replacement for
GCC-XML.
More changes are required to make the test suite pass.
[1] https://github.com/CastXML/CastXML