]> git.saurik.com Git - bison.git/blobdiff - examples/variant.yy
Fix glr.cc's debug level handling.
[bison.git] / examples / variant.yy
index 016c4b2ad07d3c4a6a20d5fd138a3cb30cc04b86..fe5dce0fa9219b7b85ee1a4997c38fcf7f6a3c22 100644 (file)
@@ -46,13 +46,14 @@ typedef std::list<std::string> strings_type;
   }
 }
 
-%token <std::string> TEXT;
+%token <::std::string> TEXT;
 %token <int> NUMBER;
-%printer { debug_stream () << $$; } <int> <std::string> <strings_type>;
+%printer { debug_stream () << $$; }
+   <int> <::std::string> <::std::list<std::string>>;
 %token END_OF_FILE 0;
 
-%type <std::string> item;
-%type <strings_type> list;
+%type <::std::string> item;
+%type <::std::list<std::string>> list;
 
 %%