-
Notifications
You must be signed in to change notification settings - Fork 126
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
Implement parser for #include
preprocessor directive
#110
Conversation
b000340
to
03053e5
Compare
#include
preprocessor directive & constant evaluation for #if
and #elif
Can you decouple "Implement parser for #include preprocessor directive & constant evaluation for #if and #elif" into two pull requests? So that, it is more straightforward for reviewing. |
03053e5
to
8fc51b0
Compare
#include
preprocessor directive & constant evaluation for #if
and #elif
#include
preprocessor directive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the git commit message. You should address the limitation of the proposed change.
8fc51b0
to
13418b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Don't indent git commit messages. For example, instead of writing "- This syntax parser can parse 2 forms," simply write "This syntax parser can parse 2 forms." without the leading
-
. - Avoid using backticks in git commit messages. Instead, use (double) quotation marks. This approach ensures compatibility with most editors.
This syntax parser can parse 2 forms of #include, including '#include "header.h"' (string path form) and '#include <header.h>' (system defined path form), the former one is guaranteed to be always parsed, however, the later one is not guaranteed will be always successfully parsed due to lack of platform support.
13418b5
to
001ab29
Compare
Thank @ChAoSUnItY for contributing! |
#include
preprocessor directive to avoid potential syntax error.