[Top][All Lists]

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

Grammar types and C++

From: Hans Aberg
Subject: Grammar types and C++
Date: Tue, 30 Nov 2010 21:27:46 +0100

What is the state of support for using grammar types and C++? - Specifically, it would suffice for me if: 1. A type <type> expands to <type>($k) instead of the current union field selection $k.<type>. 2. Being able to define my own YYSTYPE instead of using the current union.

I define a root class, which just holds a polymorphic pointer, from which all the other classes are derived, with no derived class adding any data. So this would then suffice.

Right now, I need to write out type conversions explicitly, and I do not use a typed grammar. So having this feature, might be a simplification.


reply via email to

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