diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-01-03 06:57:39 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-01-03 08:14:22 +0100 |
commit | c1884d300267b4eaec33f448d0a9f1b211d18a01 (patch) | |
tree | 9b9fc32debcc1658f40e47bb5cae0996dfeeba70 /examples | |
parent | ab1208e2632e183026b751276158118fa44b6cee (diff) | |
download | bison-c1884d300267b4eaec33f448d0a9f1b211d18a01.tar.gz |
glr.c: example: use a printer
* examples/c++/glr/c++-types.yy: Here.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c++/glr/c++-types.yy | 2 |
1 files changed, 2 insertions, 0 deletions
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 '+' |