mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
* src/skeleton.h: New.
* src/output.c (output_parser, output_master_parser): Remove, dead code. * src/output.h (get_lines_number, actions_output, guards_output) (token_definitions_output): Prototype them. * src/parse-skel.y: Add the license notice. Include output.h and skeleton.h. (process_skeleton): Returns void, and takes a single parameter. * src/scan-skel.l: Add the license notice. Include skeleton.h. Don't use %option yylineno: it seems that then Flex imagines REJECT has been used, and therefore it won't reallocate its buffers (which makes no other sense to me than a bug). It results in warnings for `unused: yy_flex_realloc'. to guess if the generated parsers should have '.tab' in their * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Output the generated parsing program for bison,
|
||||
Copyright 2000 Free Software Foundation, Inc.
|
||||
Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -26,6 +26,12 @@ extern int error_verbose;
|
||||
/* Output the parsing tables and the parser code to FTABLE. */
|
||||
void output PARAMS ((void));
|
||||
|
||||
size_t get_lines_number PARAMS ((const char *s));
|
||||
|
||||
void actions_output PARAMS ((FILE *out, size_t *line));
|
||||
void guards_output PARAMS ((FILE *out, size_t *line));
|
||||
void token_definitions_output PARAMS ((FILE *out, size_t *line));
|
||||
|
||||
extern struct obstack muscle_obstack;
|
||||
|
||||
#endif /* !OUTPUT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user