-
Notifications
You must be signed in to change notification settings - Fork 747
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
Preset for HCC #265
Comments
It probably doesn't support that exact syntax, yes. |
So is there a way I can ignore this line? I'm assuming I can emulate the alias with |
From reading the code, it seems there is no facility to do simple find&replace. If you like, I can post the code I have now. Currently, I have a |
We'll likely have to fix JavaCPP's Parser, but it should be pretty easy. There's someone who a few minutes ago has just fixed a similar bug: #264 If you could help in a similar way, it would be very much appreciated. |
May I ask why you chose to write your own C++ parser instead of using one of many third-party ones? The Eclipse parser opens hc.hpp without problems (try it: https://github.com/almson/eclipse-cdt-standalone-astparser). There's other options too: https://stackoverflow.com/questions/12865587/parsing-c-source-code-in-java-environment |
Because no existing parser was designed to output a Java interface. Of course that's the long term plan, enhancing some existing parser so it supports what we need. As usual, your help would be very welcome. |
Fixed the namespace alias issue. Let me know if you encounter any other issues. Thanks for reporting! |
I've fixed the parsing issue you were having. Any other issues with HCC? |
FYI, JetBrains chose to create their own C++ parser, instead of using an existing one as well: |
I'm trying to create a preset for AMD's new GPGPU effort, particularly for the HCC interface. (Honestly, the alphabet soup is such a mess that I'm not going to even begin to explain all of the moving parts. Suffice it to say that I'm targeting
hc.hpp
).The first stumbling block I've hit is
Unexpected token '::'
for the following line:I'd appreciate any pointers. Does the Parser support this syntax? Is there a workaround?
The text was updated successfully, but these errors were encountered: