mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
examples: minor improvements
* examples/variant.yy: Don't use debug_stream(), obsoleted. Use <*>.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user