X-Git-Url: https://git.piment-noir.org/?p=TP_AL_C.git;a=blobdiff_plain;f=lexer%2Fmain.c;h=19fc34f8763db78ec958d8d31b7d4e656090b0c8;hp=db41495086b75c03aa4a24683d07a188dabbc429;hb=28280a4c443c55a4e1689a151e5ca2cdf699b184;hpb=dcfcd9abe60fea374dde83d5488481e01ba9c3aa diff --git a/lexer/main.c b/lexer/main.c index db41495..19fc34f 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -268,8 +268,8 @@ int main (int argc, char const *argv[]) { } else { printf ("Token type found: %s\n", tokenTypestr[tokenType]); } - tokenFound++; tokenList[tokenFound] = tokenTypestr[tokenType]; + tokenFound++; // reinit tokenValue i = 0; memset(tokenValue, 0, sizeof(tokenValue));