X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e0c40012bd7c94c88a0bb9886e37de9622729d9a..eeeb962b:/src/reader.c diff --git a/src/reader.c b/src/reader.c index 8f01a7c4..ac160aed 100644 --- a/src/reader.c +++ b/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; @@ -1474,12 +1488,14 @@ readgram (void) /* Make a dummy nonterminal, a gensym. */ bucket *sdummy = gensym (); - /* Make a new rule, whose body is empty, - before the current one, so that the action - just read can belong to it. */ + /* Make a new rule, whose body is empty, before the + current one, so that the action just read can + belong to it. */ nrules++; nitems++; p = symbol_list_new (sdummy); + /* Attach its lineno to that of the host rule. */ + p->line = crule->line; if (crule1) crule1->next = p; else