I'm currently dealing with yacc & lex. That part is mostly done, however I would like my yyparse function to recieve a parameter.
I found in the bison documentation this http://www.gnu.org/software/bison/manual/html_node/Parser-Function.html
Which pretty much solves my problem, however I would like to know if you guys have used
%parse-param {int *nastiness}
Outside of Linux, I mean, do you know if %parse-param is portable? is it included in the yacc standard?