1 |
m4_divert(-1) |
m4_divert(-1) |
2 |
# C++ skeleton for Bison |
# C++ skeleton for Bison |
3 |
# Copyright (C) 2002 Free Software Foundation, Inc. |
# Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
4 |
|
|
5 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
6 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
87 |
# We do want M4 expansion after # for CPP macros. |
# We do want M4 expansion after # for CPP macros. |
88 |
m4_changecom() |
m4_changecom() |
89 |
m4_divert(0)dnl |
m4_divert(0)dnl |
90 |
@output @output_header_name@ |
m4_if(b4_defines_flag, 0, [], |
91 |
|
[@output @output_header_name@ |
92 |
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison], |
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison], |
93 |
[2002])[ |
[2002, 2003])[ |
94 |
/* FIXME: This is wrong, we want computed header guards. |
/* FIXME: This is wrong, we want computed header guards. |
95 |
I don't know why the macros are missing now. :( */ |
I don't know why the macros are missing now. :( */ |
96 |
#ifndef PARSER_HEADER_H |
#ifndef PARSER_HEADER_H |
283 |
} |
} |
284 |
|
|
285 |
#endif /* ! defined PARSER_HEADER_H */] |
#endif /* ! defined PARSER_HEADER_H */] |
286 |
dnl |
])dnl |
287 |
@output @output_parser_name@ |
@output @output_parser_name@ |
288 |
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison], |
b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison], |
289 |
[2002])[ |
[2002, 2003]) |
290 |
|
|
291 |
#include @output_header_name@ |
m4_if(b4_defines_flag, 0, [], [#include @output_header_name@])[ |
292 |
|
|
293 |
/* Enable debugging if requested. */ |
/* Enable debugging if requested. */ |
294 |
#if YYDEBUG |
#if YYDEBUG |
767 |
]b4_epilogue |
]b4_epilogue |
768 |
dnl |
dnl |
769 |
@output stack.hh |
@output stack.hh |
770 |
b4_copyright([2002])[ |
b4_copyright([2002, 2003])[ |
771 |
|
|
772 |
#ifndef BISON_STACK_HH |
#ifndef BISON_STACK_HH |
773 |
# define BISON_STACK_HH |
# define BISON_STACK_HH |
864 |
#endif // not BISON_STACK_HH] |
#endif // not BISON_STACK_HH] |
865 |
dnl |
dnl |
866 |
@output location.hh |
@output location.hh |
867 |
b4_copyright([2002])[ |
b4_copyright([2002, 2003])[ |
868 |
|
|
869 |
#ifndef BISON_LOCATION_HH |
#ifndef BISON_LOCATION_HH |
870 |
# define BISON_LOCATION_HH |
# define BISON_LOCATION_HH |