glr.c: example: use a printer
Akim Demaille <[email protected]> Sun, 3 Jan 2021 08:15:32 +0100
| Newsgroups | gmane.comp.parsers.bison.patches |
|---|---|
| Message-ID | <[email protected]> |
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 '+'