X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fbca394ee1416fcfa41f839abc313a037732e84d..f122444873a1ec499d25ffec5765dcc48dc7b928:/examples/variant.yy diff --git a/examples/variant.yy b/examples/variant.yy index 25f476a5..9413cbcf 100644 --- a/examples/variant.yy +++ b/examples/variant.yy @@ -1,5 +1,5 @@ /* - Copyright (C) 2008-2012 Free Software Foundation, Inc. + Copyright (C) 2008-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,8 +19,8 @@ %skeleton "lalr1.cc" %defines %define api.token.constructor +%define api.value.type variant %define parse.assert -%define variant %locations %code requires // *.hh @@ -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;