examples: minor improvements

* examples/variant.yy: Don't use debug_stream(), obsoleted.
Use <*>.
This commit is contained in:
Akim Demaille
2012-12-26 08:12:38 +01:00
parent 3fd1d6b2f3
commit 304b384ea3

View 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;