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?