1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
--- rdist-6.1.5/src/gram.y.bison 1998-11-10 05:10:42.000000000 +0100
+++ rdist-6.1.5/src/gram.y 2003-06-04 16:02:19.000000000 +0200
@@ -90,10 +90,10 @@
struct namelist *namel;
}
-%type <optval> OPTION, options
-%type <string> NAME, STRING
-%type <subcmd> INSTALL, NOTIFY, EXCEPT, PATTERN, SPECIAL, CMDSPECIAL, cmdlist, cmd
-%type <namel> namelist, names, opt_namelist nlist
+%type <optval> OPTION options
+%type <string> NAME STRING
+%type <subcmd> INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdlist cmd
+%type <namel> namelist names opt_namelist nlist
%%
@@ -101,19 +101,19 @@
| file command
;
-command: NAME '=' namelist = {
+command: NAME '=' namelist {
(void) lookup($1, INSERT, $3);
}
- | namelist ARROW namelist cmdlist = {
+ | namelist ARROW namelist cmdlist {
insert((char *)NULL, $1, $3, $4);
}
- | NAME COLON namelist ARROW namelist cmdlist = {
+ | NAME COLON namelist ARROW namelist cmdlist {
insert($1, $3, $5, $6);
}
- | namelist DCOLON NAME cmdlist = {
+ | namelist DCOLON NAME cmdlist {
append((char *)NULL, $1, $3, $4);
}
- | NAME COLON namelist DCOLON NAME cmdlist = {
+ | NAME COLON namelist DCOLON NAME cmdlist {
append($1, $3, $5, $6);
}
| error
@@ -133,10 +133,10 @@
}
;
-nlist: NAME = {
+nlist: NAME {
$$ = makenl($1);
}
- | '(' names ')' = {
+ | '(' names ')' {
$$ = $2;
}
;
@@ -144,7 +144,7 @@
names: /* VOID */ {
$$ = last_n = NULL;
}
- | names NAME = {
+ | names NAME {
if (last_n == NULL)
$$ = last_n = makenl($2);
else {
@@ -158,7 +158,7 @@
cmdlist: /* VOID */ {
$$ = last_sc = NULL;
}
- | cmdlist cmd = {
+ | cmdlist cmd {
if (last_sc == NULL)
$$ = last_sc = $2;
else {
@@ -169,7 +169,7 @@
}
;
-cmd: INSTALL options opt_namelist ';' = {
+cmd: INSTALL options opt_namelist ';' {
register struct namelist *nl;
$1->sc_options = $2 | options;
@@ -185,17 +185,17 @@
}
$$ = $1;
}
- | NOTIFY namelist ';' = {
+ | NOTIFY namelist ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_VARS);
$$ = $1;
}
- | EXCEPT namelist ';' = {
+ | EXCEPT namelist ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$$ = $1;
}
- | PATTERN namelist ';' = {
+ | PATTERN namelist ';' {
struct namelist *nl;
char *cp, *re_comp();
@@ -205,13 +205,13 @@
$1->sc_args = expand($2, E_VARS);
$$ = $1;
}
- | SPECIAL opt_namelist STRING ';' = {
+ | SPECIAL opt_namelist STRING ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$1->sc_name = $3;
$$ = $1;
}
- | CMDSPECIAL opt_namelist STRING ';' = {
+ | CMDSPECIAL opt_namelist STRING ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$1->sc_name = $3;
@@ -219,18 +219,18 @@
}
;
-options: /* VOID */ = {
+options: /* VOID */ {
$$ = 0;
}
- | options OPTION = {
+ | options OPTION {
$$ |= $2;
}
;
-opt_namelist: /* VOID */ = {
+opt_namelist: /* VOID */ {
$$ = NULL;
}
- | namelist = {
+ | namelist {
$$ = $1;
}
;
|