using yacc union in managed c++

"ras" <rastrahm@yahoo.com>
11 Apr 2007 23:34:10 -0400

          From comp.compilers

Related articles
using yacc union in managed c++ rastrahm@yahoo.com (ras) (2007-04-11)
Re: using yacc union in managed c++ cdodd@acm.org (Chris Dodd) (2007-04-13)
Re: using yacc union in managed c++ gneuner2@comcast.net (George Neuner) (2007-04-13)
| List of all articles for this month |

From: "ras" <rastrahm@yahoo.com>
Newsgroups: comp.compilers
Date: 11 Apr 2007 23:34:10 -0400
Organization: Compilers Central
Keywords: yacc, C++, question

Is there a way to implement the union in a managed c++ yacc parser?
visual studio compiler complains about the union, so for strings i
created an array and returned the index of the string via yylval. but
i need to return operators, floating point numbers, etc. and this
seems klutzy. got any better ideas?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.