On 27 Sep 2005, at 10:40, Evan Lavelle wrote:
Frans Englich wrote:
(From the top of my head it would be nice if one could combine
different types for different types of "entities". Say, a union
for tokens, and an YYSTYPE struct for non-terminals.
This is not possible, as all parser semanti
Frans Englich wrote:
On Friday 16 September 2005 20:28, Evan Lavelle wrote:
struct yystype {
...
antlr::RefToken tok;
antlr::RefASTast;
};
#define YYSTYPE yystype
Yupp, that is an attractive solution from a memory management perspective.
However, I have trouble with connectin
On Friday 16 September 2005 20:28, Evan Lavelle wrote:
> struct yystype {
> ...
> antlr::RefToken tok;
> antlr::RefASTast;
> };
>
> #define YYSTYPE yystype
Yupp, that is an attractive solution from a memory management perspective.
However, I have trouble with connecting flex to t
struct yystype {
...
antlr::RefToken tok;
antlr::RefASTast;
};
#define YYSTYPE yystype
Evan
___
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
On Fri, 16 Sep 2005, Frans Englich wrote:
> From my actions I call factory functions which returns instances I assign to
> the actions($$), in order to build an AST tree. I write in C++, and recently
> converted all code to return/take shared pointers to objects, instead of raw
> pointers.
>
> Whe
On 16 Sep 2005, at 19:14, Frans Englich wrote:
I have a problem involving bison although a solution may not
directly mean
modifying the bison grammar. Nevertheless, someone might be able to
spot a
solution.
From my actions I call factory functions which returns instances I
assign to
the a
Hi,
I have a problem involving bison although a solution may not directly mean
modifying the bison grammar. Nevertheless, someone might be able to spot a
solution.
From my actions I call factory functions which returns instances I assign to
the actions($$), in order to build an AST tree. I wr