commit c1884d300267b4eaec33f448d0a9f1b211d18a01
Author: Akim Demaille <[email protected]>
Date: Sun Jan 3 06:57:39 2021 +0100
glr.c: example: use a printer
* examples/c++/glr/c++-types.yy: Here.
diff --git a/examples/c++/glr/c++-types.yy b/examples/c++/glr/c++-types.yy
index 266bd100..8399b4f9 100644
--- a/examples/c++/glr/c++-types.yy
+++ b/examples/c++/glr/c++-types.yy
@@ -60,6 +60,8 @@
TYPENAME "typename"
ID "identifier"
+%printer { yyo << $$; } TYPENAME ID stmt expr decl declarator
+
%right '='
%left '+'