mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
glr.c: example: use a printer
* examples/c++/glr/c++-types.yy: Here.
This commit is contained in:
@@ -60,6 +60,8 @@
|
|||||||
TYPENAME "typename"
|
TYPENAME "typename"
|
||||||
ID "identifier"
|
ID "identifier"
|
||||||
|
|
||||||
|
%printer { yyo << $$; } TYPENAME ID stmt expr decl declarator
|
||||||
|
|
||||||
%right '='
|
%right '='
|
||||||
%left '+'
|
%left '+'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user