Add FIXME comment for MOTCLE matching
[TP_AL_C.git] / lexer / main.c
index 4572d0267330eaa05ee1cdf382d17978c2236f43..8122023c63a6a6ded748ea99eda9cfba89d1e840 100644 (file)
@@ -17,7 +17,7 @@ enum TokenType {
 } tokenType;
 const char* tokenTypestr[] = { "MOTCLE", "SECTION", "SSECTION", "NPARA", "MOT", "FIN" };
 
-/* This looks silly to check for each characters but for debugging, it's just the way to go */
+/* It looks silly to check for each characters but for debugging, it's just the way to go */
 bool istAlpha() {
     if (c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f' || c == 'g' || \
         c == 'h' || c == 'i' || c == 'j' || c == 'k' || c == 'l' || c == 'm' || c == 'n' || \
@@ -87,6 +87,7 @@ init:
     }
 
 MC1:
+    // FIXME: Partial match need a rewind in the characters extraction from the file 
     if (c == Titre[j] && j < strlen(Titre) - 1) {
         c = fgetc(source);
         tokenValue[i] = c;