Explorar o código

Make simple division working

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
7108e6b30c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      eval.l

+ 1 - 1
eval.l

@@ -15,7 +15,7 @@ VOID [ \n\t]
 %%
 
 [0-9]+      yylval = atoi(yytext); return number; // Number token
-[-*+()=]    return yytext[0]; // Operators
+[-*+()=/]   return yytext[0]; // Operators
 {VOID}+     ; // Skip white characters
 .           fprintf(stderr, "Input '%c' unknown\n", yytext[0]); // Fallback error