parser: deprecate %nterm

It has several weaknesses.
Reported by Rici Lake.
http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00000.html

* src/scan-gram.l: here.
This commit is contained in:
Akim Demaille
2018-11-11 19:16:56 +01:00
parent 8d454b843c
commit 7928c3e6fb
5 changed files with 30 additions and 32 deletions

View File

@@ -344,7 +344,7 @@ AT_TEST([%destructor syncline],
%union {
int ival;
}
%nterm <ival> exp
%type <ival> exp
%%
exp: '0' { $$ = 0; };
%%
@@ -369,7 +369,7 @@ AT_TEST([%printer syncline],
%union {
int ival;
}
%nterm <ival> exp
%type <ival> exp
%%
exp: '0' { $$ = 0; };
%%