mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/reader.c (parse_include_decl): New, Not yet implemented.
(read_declarations): Add case tok_include. * src/getargs.h (include): Add its extern definition. * src/getargs.c (include): New const char *. (getargs): Add case '-I'. * src/options.c (option_table): Add include as command line and percent option. * src/lex.h (token_t): Add tok_include.
This commit is contained in:
14
src/reader.c
14
src/reader.c
@@ -974,6 +974,16 @@ parse_skel_decl (void)
|
||||
/* Complete with parse_dquoted_param () on the CVS branch 1.29. */
|
||||
}
|
||||
|
||||
/*---------------------------------------.
|
||||
| Parse what comes after %skeleton_path. |
|
||||
`---------------------------------------*/
|
||||
|
||||
void
|
||||
parse_include_decl (void)
|
||||
{
|
||||
/* Complete with parse_dquoted_param () on the CVS branch 1.29. */
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------.
|
||||
| Read from finput until `%%' is seen. Discard the `%%'. Handle |
|
||||
| any `%' declarations, and copy the contents of any `%{ ... %}' |
|
||||
@@ -1048,6 +1058,10 @@ read_declarations (void)
|
||||
parse_skel_decl ();
|
||||
break;
|
||||
|
||||
case tok_include:
|
||||
parse_include_decl ();
|
||||
break;
|
||||
|
||||
case tok_noop:
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user