From: Akim Demaille Date: Wed, 26 Dec 2012 07:12:38 +0000 (+0100) Subject: examples: minor improvements X-Git-Tag: v2.7.90~221 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/304b384ea31ea26e35ea8a9dd2959cf50037256b examples: minor improvements * examples/variant.yy: Don't use debug_stream(), obsoleted. Use <*>. --- diff --git a/examples/variant.yy b/examples/variant.yy index 33db3512..eef2080d 100644 --- a/examples/variant.yy +++ b/examples/variant.yy @@ -70,8 +70,7 @@ typedef std::list strings_type; %token <::std::string> TEXT; %token NUMBER; -%printer { debug_stream () << $$; } - <::std::string> <::std::list>; +%printer { yyoutput << $$; } <*>; %token END_OF_FILE 0; %type <::std::string> item;