bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/5] examples: minor improvements


From: Akim Demaille
Subject: [PATCH 3/5] examples: minor improvements
Date: Wed, 26 Dec 2012 10:40:16 +0100

* examples/variant.yy: Don't use debug_stream(), obsoleted.
Use <*>.
---
 examples/variant.yy | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/variant.yy b/examples/variant.yy
index 33db351..eef2080 100644
--- a/examples/variant.yy
+++ b/examples/variant.yy
@@ -70,8 +70,7 @@ typedef std::list<std::string> strings_type;
 
 %token <::std::string> TEXT;
 %token <int> NUMBER;
-%printer { debug_stream () << $$; }
-   <int> <::std::string> <::std::list<std::string>>;
+%printer { yyoutput << $$; } <*>;
 %token END_OF_FILE 0;
 
 %type <::std::string> item;
-- 
1.8.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]