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} *** _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison