[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison ./ChangeLog src/files.c src/files.h src/g...
From: |
Akim Demaille |
Subject: |
bison ./ChangeLog src/files.c src/files.h src/g... |
Date: |
Thu, 27 Dec 2001 13:06:06 -0500 |
CVSROOT: /cvsroot/bison
Module name: bison
Changes by: Akim Demaille <address@hidden> 01/12/27 13:06:06
Modified files:
. : ChangeLog
src : files.c files.h gram.h main.c output.c reader.c
tests : Makefile.am regression.at testsuite.at
Added files:
tests : semantic.at
Log message:
* src/gram.h (rule_t): `guard' and `guard_line' are new members.
* src/reader.c (symbol_list): `guard' and `guard_line' are new
members.
(symbol_list_new): Adjust.
(copy_action): action_line is the first line, not the last.
(copy_guard): Just as for actions, store the `action' only, not
the switch/case/break flesh.
Don't parse the user action that might follow the guard, let...
(readgram): do it, i.e., now, there can be an action after a
guard.
In other words the guard is just explicitly optional.
(packgram): Adjust.
* src/output.c (guards_output): New.
(output_parser): Call it when needed.
(output): Also free the guard and attrs obstacks.
* src/files.c, src/files.h (obstack_save): Remove.
(output_files): Remove.
As a result, if one needs the former `.act' file, using an
appropriate skeleton which requires actions and guards is now
required.
* src/main.c (main): Adjust.
* tests/semantic.at: New.
* tests/regression.at: Use `input.y' as input file name.
Avoid 8+3 problems by requiring input.c when the test needs the
parser.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/ChangeLog.diff?tr1=1.442&tr2=1.443&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/files.c.diff?tr1=1.60&tr2=1.61&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/files.h.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/gram.h.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/main.c.diff?tr1=1.46&tr2=1.47&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/output.c.diff?tr1=1.103&tr2=1.104&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/reader.c.diff?tr1=1.125&tr2=1.126&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/semantic.at?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/Makefile.am.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/regression.at.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/testsuite.at.diff?tr1=1.6&tr2=1.7&r1=text&r2=text