} 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' || \
}
int scanner() {
-const char* Titre = "Titre";
-const char* Auteur = "Auteur";
-unsigned int j = 0;
+ const char* Titre = "Titre";
+ const char* Auteur = "Auteur";
+ unsigned int j = 0;
// The main loop get the next character
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;