newer version

This commit is contained in:
ceriel
1986-06-06 02:22:09 +00:00
parent db258b68ea
commit caf99ea472
17 changed files with 224 additions and 301 deletions

View File

@@ -29,7 +29,6 @@ struct token dot, aside;
struct type *toktype;
struct string string;
int idfsize = IDFSIZE;
extern label data_label();
static
SkipComment()
@@ -51,21 +50,15 @@ SkipComment()
if (ch == '*') {
++NestLevel;
}
else {
continue;
}
else continue;
}
else
if (ch == '*') {
LoadChar(ch);
if (ch == ')') {
if (NestLevel-- == 0) {
return;
}
}
else {
continue;
if (NestLevel-- == 0) return;
}
else continue;
}
LoadChar(ch);
}
@@ -198,7 +191,7 @@ again:
return tk->tk_symb = ch;
default :
assert(0);
crash("(LLlex, STCOMP)");
}
case STIDF:
@@ -216,7 +209,6 @@ again:
*tg++ = '\0';
tk->TOK_IDF = id = str2idf(buf, 1);
if (!id) fatal("Out of memory");
return tk->tk_symb = id->id_reserved ? id->id_reserved : IDENT;
}
@@ -413,7 +405,7 @@ Sdec:
case STCHAR:
default:
assert(0);
crash("(LLlex) Impossible character class");
}
/*NOTREACHED*/
}