1# 2# Sccsid @(#)yyval.sed 1.3 (gritter) 4/27/04 3# 4# bison has a yacc-compatible yyval, but it is a local variable inside 5# yyparse(). Making the variable global is necessary to make bc work 6# with a bison-generated parser. 71,2 { 8 /Bison/ { 9 :look 10 /YYSTYPE/ { 11 a\ 12 YYSTYPE yyval; 13 :repl 14 s/^[ ]*YYSTYPE[ ]*yyval;// 15 n 16 t 17 b repl 18 } 19 n 20 b look 21 } 22} 23