Parcourir la source

Make simple division working

DricomDragon il y a 5 ans
Parent
commit
7108e6b30c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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