* data/Makefile.am (dist_pkgdata_DATA): Add push.c.

* data/c.m4 (YYPUSH): New.
(b4_push_if): New macro.  Use it instead of #ifdef YYPUSH.
* src/getargs.c (push_parser): New var.
* src/getargs.h (push_parser): New declaration.
* src/output.c (prepare): Add macro insertion of `push_flag'.
* src/parse-gram.y (PERCENT_PUSH_PARSER): New token.
(prologue_declaration): Parse %push-parser.
* src/scan-gram.l: Scan new PERCENT_PUSH_PARSER token.
* tests/calc.at (_AT_CHECK_CALC_ERROR): Add "Return" and "Now" to
list of removed lines from the traces observed.
(AT_CHECK_CALC_LALR): Added push parser tests.
This commit is contained in:
Paul Eggert
2006-09-15 15:56:26 +00:00
parent 21fe08cadc
commit 31c10e38db
10 changed files with 1842 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
## Copyright (C) 2002, 2005 Free Software Foundation, Inc.
## Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
## 02110-1301 USA
dist_pkgdata_DATA = README \
c.m4 yacc.c glr.c \
c.m4 yacc.c glr.c push.c \
c++.m4 location.cc lalr1.cc glr.cc
m4sugardir = $(pkgdatadir)/m4sugar