help-bison
[Top][All Lists]
Advanced

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

monitoring the semantic value stack


From: Basile STARYNKEVITCH
Subject: monitoring the semantic value stack
Date: Wed, 14 Feb 2007 17:08:28 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello

I want to use bison with a semantic value stack which is garbage
collected. For example, I'm hacking inside GCC and using its GGC
garbage collector (with GTY-ed stuff see
http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html for more) -
and I'm using bison to parse some data read by some GCC (sort of)
optimisation pass I am working on.

So I need to have my own version of push a semantic value & pop a
semantic value and get the n-th semantic value (for GCC hackers
something similar to the gcc/vec.h macros to push, pop, get-nth ...)

I see several ways of achieving this

1. provide a yyoverflow and a  %initial-action which #define yyvs
(ugly)

2. writing my own skeleton file. (undocumented)

3. generating only the action table %no-parser

Any clues?
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***




reply via email to

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