2
## 06_parse.y-semicolons.dpatch by Paul Eggert <eggert@twinsun.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix missing semicolons in parse.y to keep recent versions of bison happy.
8
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
13
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
15
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
21
diff -urNad 06.mawk.tmp/parse.y 06.mawk/parse.y
22
--- 06.mawk.tmp/parse.y 1995-06-11 23:55:31.000000000 +0100
23
+++ 06.mawk/parse.y 2003-04-09 22:34:10.000000000 +0100
25
code1(_PUSHINT) ; code1(0) ;
26
code2(_PRINT, bi_print) ;
30
statement_list : statement
31
| statement_list statement
33
/* an empty production to store the code_ptr */
35
{ $$ = code_offset ; }
39
statement : print mark pr_args pr_direction separator
41
{ patch_jmp(code_ptr) ;
60
{ $$ = $2 ; code1(_EXIT) ; }
63
return_statement : RETURN separator
66
| RETURN expr separator
67
{ $$ = $2 ; code1(_RET) ; }
76
-getline : GETLINE { getline_flag = 1 ; }
77
+getline : GETLINE { getline_flag = 1 ; } ;
79
fvalue : lvalue | field ;