projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fd1d6b
)
examples: minor improvements
author
Akim Demaille
<akim@lrde.epita.fr>
Wed, 26 Dec 2012 07:12:38 +0000
(08:12 +0100)
committer
Akim Demaille
<akim@lrde.epita.fr>
Wed, 26 Dec 2012 09:38:59 +0000
(10:38 +0100)
* examples/variant.yy: Don't use debug_stream(), obsoleted.
Use <*>.
examples/variant.yy
patch
|
blob
|
history
diff --git
a/examples/variant.yy
b/examples/variant.yy
index
33db351
..
eef2080
100644
(file)
--- 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;