Bell 32V development
[unix-history] / usr / src / cmd / lex / parser.y
index 2f152b4..81df2d0 100644 (file)
@@ -44,12 +44,12 @@ end:                delim | ;
 defns: defns STR STR
        ={      scopy($2,dp);
                def[dptr] = dp;
 defns: defns STR STR
        ={      scopy($2,dp);
                def[dptr] = dp;
-               dp =+ slength($2) + 1;
+               dp += slength($2) + 1;
                scopy($3,dp);
                subs[dptr++] = dp;
                if(dptr >= DEFSIZE)
                        error("Too many definitions");
                scopy($3,dp);
                subs[dptr++] = dp;
                if(dptr >= DEFSIZE)
                        error("Too many definitions");
-               dp =+ slength($3) + 1;
+               dp += slength($3) + 1;
                if(dp >= dchar+DEFCHAR)
                        error("Definitions too long");
                subs[dptr]=def[dptr]=0; /* for lookup - require ending null */
                if(dp >= dchar+DEFCHAR)
                        error("Definitions too long");
                subs[dptr]=def[dptr]=0; /* for lookup - require ending null */
@@ -374,7 +374,7 @@ yylex(){
                                                        sname[sptr] = 0;        /* required by lookup */
                                                        if(sptr >= STARTSIZE)
                                                                error("Too many start conditions");
                                                        sname[sptr] = 0;        /* required by lookup */
                                                        if(sptr >= STARTSIZE)
                                                                error("Too many start conditions");
-                                                       sp =+ slength(sp) + 1;
+                                                       sp += slength(sp) + 1;
                                                        if(sp >= schar+STARTCHAR)
                                                                error("Start conditions too long");
                                                        }
                                                        if(sp >= schar+STARTCHAR)
                                                                error("Start conditions too long");
                                                        }
@@ -632,7 +632,7 @@ yylex(){
                                else {
                                        yylval = ccptr;
                                        scopy(token,ccptr);
                                else {
                                        yylval = ccptr;
                                        scopy(token,ccptr);
-                                       ccptr =+ slength(token) + 1;
+                                       ccptr += slength(token) + 1;
                                        if(ccptr >= ccl+CCLSIZE)
                                                error("Too many large character classes");
                                        }
                                        if(ccptr >= ccl+CCLSIZE)
                                                error("Too many large character classes");
                                        }