From: utzoo!decvax!microsof!uw-beave!cornell!vax135!floyd!cmcl2!philabs!sdcsvax!sdccsu3!sdcvax!trw-unix!trwspp!sentry1!wartik Newsgroups: net.unix-wizards Title: Re: Reply to: yystype problems with yacc Article-I.D.: sentry1.1474 Posted: Thu Apr 7 19:53:23 1983 Received: Wed Apr 13 02:40:03 1983 References: sri-arpa.823 The YYSTYPE mechanism works fine. However, you have to read the yacc manual very carefully to figure it out. Read page 22 very slowly! The key statement is the second sentence of the last paragraph on the page: you MUST use "%type" statements. If you do that, yacc removes the three lines it uses to define YYSTYPE, and replaces them with an appropriate union declaration. If you don't then even if you have used the "%union" construct yacc insists on leaving YYSTYPE as an integer by default. -- Steve Wartik decvax!trw-unix!trwspp!wartik