Anyone know the meaning of yy

conventionshistory

Since history questions are considered on topic, I figured I'd ask one that's been bugging me for quite some time and no one I know seems to know the answer. Does anyone know what the historical significance is of the prefix yy? Most of the variables and functions generated by lex start with it, such as yylval, and yylex(). I also remember seeing a utility named yyrsa somewhere, but can't find references to it anywhere now. Inquiring minds want to know!

Best Answer

I think it has something to do with yacc, which has files ending in .y, and requires a function called yylex.