diff --git a/NEWS b/NEWS index 7a039021..d8a21e53 100644 --- a/NEWS +++ b/NEWS @@ -26,8 +26,8 @@ GNU Bison NEWS %% %token INT "int"; - %nterm > int; - %nterm >> list; + %type > int; + %type >> list; list: %empty {} diff --git a/doc/bison.texi b/doc/bison.texi index f633f1c9..3fddfe50 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -9198,11 +9198,11 @@ The following grammar file, @file{calc.y}, will be used in the sequel: @end group @group %token NUM -%nterm exp +%type exp @end group @group %token STR -%nterm useless +%type useless @end group @group %left '+' '-'