From: Robin Stocker Date: 2006-04-05T00:22:27+09:00 Subject: Re: [PATCH] parse.y: literal strings for tokens ville.mattila@stonesoft.com wrote: >> From: nobu@ruby-lang.org >> yacc runs before C compiler, including preprocessor. Yes, that's the problem. > Ok, how about if we run parse.y through C preprocessor before yacc? I don't know about that one, I imagine it could create some strange problems because there are already a lot of preprocessor defines and tests in parse.y which normally just get copied into the resulting c file. How about doing something like this in the Makefile, before feeding the file to non-bison yaccs: sed '/^%token/ s/"[^"]*"//' Of course parse.y would have to be modified to declare just one token with the %token declaration, not a whole lot. Thoughts? Robin