X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0b3287025df27584045a91a006eb63665909cab9..f122444873a1ec499d25ffec5765dcc48dc7b928:/examples/variant.yy diff --git a/examples/variant.yy b/examples/variant.yy index 1288a4a9..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 @@ -18,9 +18,9 @@ %debug %skeleton "lalr1.cc" %defines +%define api.token.constructor +%define api.value.type variant %define parse.assert -%define variant -%define lex_symbol %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;