]> git.saurik.com Git - bison.git/commitdiff
examples: minor improvements
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 26 Dec 2012 07:12:38 +0000 (08:12 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 26 Dec 2012 09:38:59 +0000 (10:38 +0100)
* examples/variant.yy: Don't use debug_stream(), obsoleted.
Use <*>.

examples/variant.yy

index 33db3512f583ad819ffe1adba78ee58228ea528e..eef2080dbabbe188c884bf21c5eae47a8e4e1665 100644 (file)
@@ -70,8 +70,7 @@ typedef std::list<std::string> strings_type;
 
 %token <::std::string> TEXT;
 %token <int> NUMBER;
-%printer { debug_stream () << $$; }
-   <int> <::std::string> <::std::list<std::string>>;
+%printer { yyoutput << $$; } <*>;
 %token END_OF_FILE 0;
 
 %type <::std::string> item;