diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/variant.yy | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/variant.yy b/examples/variant.yy index 016c4b2a..fe5dce0f 100644 --- a/examples/variant.yy +++ b/examples/variant.yy @@ -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; %% |