bison-patches
[Top][All Lists]
Advanced

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

[PATCH 0/3] qualified printers


From: Akim Demaille
Subject: [PATCH 0/3] qualified printers
Date: Fri, 27 Jul 2012 17:13:20 +0200

In the project I'm working on, I'm cheating on YYSTYPE to store
additional information: it is a struct instead of being a union.
In that case, one would really like to be able to look at all the
fields.

I'm also considering $<>$ to denote the "naked" value: the
struct itself, instead of a field from it.  So

  %token <TYPE> tok
  %printer { $$ $<FOO>$ $<>$ } <*>

would expand to { yyval->TYPE yyval->FOO (*yyval) }.

Akim Demaille (3):
  muscles: fix another occurrence of unescaped type name
  scan-code: factor the handling of the type in $<TYPE>$
  support $<tag>$ in printers and destructors

 NEWS             |  10 +++++
 data/c.m4        |  17 +++++++-
 doc/bison.texi   |  19 +++++----
 src/output.c     |  37 ++++++++++------
 src/scan-code.l  |  57 ++++++++++++++++---------
 src/symtab.h     |   7 +++-
 tests/actions.at | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/input.at   |  13 ++++++
 8 files changed, 244 insertions(+), 42 deletions(-)

-- 
1.7.11.3




reply via email to

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