Skip to content

Commit a8a5056

Browse files
Update 6b.c
1 parent 54e5673 commit a8a5056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern yylval;
88
[ \t] ;
99
[\+\-\*\/\=\<\>] {printf("operation is %s\n",yytext); return OP;}
1010
[0-9]+ {yylval=atoi(yytext);printf("number is %d\n",yylval); return DIGIT;}
11-
int|char|bool|float|void|for|do|while|if|else|return|"#include<"[a-zA-Z\.]*">" {printf("keyword is %s\n",yytext); return KEY;}
11+
int|char|double|bool|float|void|for|do|while|if|else|return|"#include<"[a-zA-Z\.]*">" {printf("keyword is %s\n",yytext); return KEY;}
1212
[a-zA-Z0-9\*\[\]]+ {printf("identifier is %s\n",yytext); return ID;}
1313
. ;
1414
%%

0 commit comments

Comments
 (0)