We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e5673 commit a8a5056Copy full SHA for a8a5056
6b.c
@@ -8,7 +8,7 @@ extern yylval;
8
[ \t] ;
9
[\+\-\*\/\=\<\>] {printf("operation is %s\n",yytext); return OP;}
10
[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;}
+int|char|double|bool|float|void|for|do|while|if|else|return|"#include<"[a-zA-Z\.]*">" {printf("keyword is %s\n",yytext); return KEY;}
12
[a-zA-Z0-9\*\[\]]+ {printf("identifier is %s\n",yytext); return ID;}
13
. ;
14
%%
0 commit comments