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 33db351..eef2080 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;