增加identifier
This commit is contained in:
parent
790e99be68
commit
3cd975a024
|
@ -74,3 +74,4 @@ Mkfile.old
|
||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
|
core
|
||||||
|
|
Binary file not shown.
|
@ -18,7 +18,7 @@ struct token stack[MAXTOKENS];
|
||||||
struct token this;
|
struct token this;
|
||||||
|
|
||||||
#define pop stack[top--]
|
#define pop stack[top--]
|
||||||
#define push(s) stack[++top];
|
#define push(s) stack[++top] = s;
|
||||||
|
|
||||||
enum type_tag classify_string(void)
|
enum type_tag classify_string(void)
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,6 @@ enum type_tag classify_string(void)
|
||||||
void gettoken(void)
|
void gettoken(void)
|
||||||
{
|
{
|
||||||
char *p = this.string;
|
char *p = this.string;
|
||||||
printf("this.string=%s\n", this.string);
|
|
||||||
/* 略过空白字符 */
|
/* 略过空白字符 */
|
||||||
while ((*p = getchar()) == ' ');
|
while ((*p = getchar()) == ' ');
|
||||||
if (isalnum(*p))
|
if (isalnum(*p))
|
||||||
|
@ -98,7 +97,7 @@ void deal_with_arrays(void)
|
||||||
gettoken();
|
gettoken();
|
||||||
}
|
}
|
||||||
gettoken();
|
gettoken();
|
||||||
printf("of ");
|
printf(" of ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue