-
Notifications
You must be signed in to change notification settings - Fork 4
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
Finish the Identifier semantic action #123
Comments
Can you provide a code snippet to evaluate this on? |
I will try to narrow down the cause of this in the original file, and create a small example |
Here's an example:
This looks like a K&R-style function declaration. I'm realizing now that the original function was not like this, it's just that the type of the argument was a typedef, which was missing. In other words, this same error appears for a function like this:
This isn't actually a K&R-style function, it's just superc thinking that missing_typedef is the parameter's identifier rather than the type. |
Is this a problem then with the headers? |
Yes, and I should be able to proceed without this semantic action being finished. We may want an additional error message in the identifier semantic action to let the user know that superc was unable to proceed because there was either a missing typedef/#define or a K&R-style function. |
From
nmap/libssh2/src/
, runningjava superc.SugarC -D HAVE_CONFIG_H -I ../include/ -I ../src ${SUGARC_EVALUATION}/nmap/openssl.headless.c > openssl.desugared.c
results in
ERROR: unsupported semantic action: Identifier
.The text was updated successfully, but these errors were encountered: