mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
Remove the so called hairy (semantic) parsers.
* src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove. * src/gram.h, src/gram.c (semantic_parser): Remove. (rule_t): Remove the guard and guard_line members. * src/lex.h (token_t): remove tok_guard. * src/options.c (option_table): Remove %guard and %semantic_parser support. * src/output.c, src/output.h (guards_output): Remove. (prepare): Adjust. (token_definitions_output): Don't output the `T' tokens (???). (output_skeleton): Don't output the guards. * src/files.c, src/files.c (attrsfile): Remove. * src/reader.c (symbol_list): Remove the guard and guard_line members. Adjust dependencies. (parse_guard): Remove. * data/bison.hairy: Remove. * doc/bison.texinfo (Environment Variables): Remove occurrences of BISON_HAIRY.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Process this file with automake to create Makefile.in.
|
||||
|
||||
## Makefile for Bison testsuite.
|
||||
## Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
## Copyright (C) 2000, 2001, 2002 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
|
||||
@@ -49,8 +49,7 @@ TESTSUITE_AT = \
|
||||
output.at sets.at reduce.at \
|
||||
synclines.at headers.at actions.at conflicts.at \
|
||||
calc.at \
|
||||
torture.at existing.at regression.at \
|
||||
semantic.at
|
||||
torture.at existing.at regression.at
|
||||
|
||||
TESTSUITE = $(srcdir)/testsuite
|
||||
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# Bison Semantic Parsers. -*- Autotest -*-
|
||||
# Copyright 2001 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
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
AT_BANNER([[Semantic Parsers.]])
|
||||
|
||||
# Well, nothing, or almost, is known about semantic parsers. For the
|
||||
# time being, just make sure we still parse them properly.
|
||||
|
||||
## ---------------- ##
|
||||
## Parsing Guards. ##
|
||||
## ---------------- ##
|
||||
|
||||
|
||||
AT_SETUP([Parsing Guards])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[%semantic-parser
|
||||
%union {
|
||||
int ival;
|
||||
}
|
||||
%token <ival> INT
|
||||
%type <ival> exp
|
||||
%%
|
||||
exp: exp '+' exp { $$ = $1 + $3 }
|
||||
| exp '/' exp %guard { if ($3 == 0) yyerror = 1 } { $$ = $1 / $3 }
|
||||
| INT;
|
||||
%%
|
||||
]])
|
||||
|
||||
AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore)
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -61,6 +61,3 @@ m4_include([existing.at])
|
||||
|
||||
# Some old bugs.
|
||||
m4_include([regression.at])
|
||||
|
||||
# Exercising bison.hairy, before it gets really removed...
|
||||
m4_include([semantic.at])
|
||||
|
||||
Reference in New Issue
Block a user