hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

yyval.sed (366B)


      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.
      7 1,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 }