-
Notifications
You must be signed in to change notification settings - Fork 27
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
Change to automatically insert #include
of header files when they are specified
#104
Conversation
cb656b5
to
34bdf29
Compare
#include
of header files when they are specified#include
of header files when they are specified
8283db1
to
0e0343a
Compare
#include
of header files when they are specified#include
of header files when they are specified
44a37bf
to
929f27b
Compare
#include
of header files when they are specified#include
of header files when they are specified
Thanks for the PR. My expectation is that a header file is included automatically when
|
7322bbf
to
180dbad
Compare
180dbad
to
71b82bc
Compare
Thank you so much! I updated this PR. |
Resolve: #14 (comment)
This PR change to automatically insert
#include
of header files when they are specified.Bison will automatically embed
#include
header files when run with the-H, --header=[FILE]
or-d
options.So, we make header file is include automatically when
-h
,--header
or-d
option is passed.We found that if Lrama was made to behave the same as Bison as is, it would fail to build ruby.The use of the
-H, --header=[FILE]
or-d
options to include header files seemed to cause problems in cases like ripper.y, where ripper.h was not included from ripper.c.So we added the
--auto-include
option to automatically add an include statement to the header file when this option is specified. How about it?