No need to zero the array of token values ends.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 25 Feb 2018 16:20:46 +0000 (17:20 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 25 Feb 2018 16:20:46 +0000 (17:20 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.gitignore
lexer/lexical_analyzer.c

index 6b4cd4fb321e0ed018ba5794846c3af9eebc3b90..dc53bb51460eccbac424626e76dd6420eda9db72 100644 (file)
@@ -1,4 +1,4 @@
-lexer
+lexer/lexer
 !lexer/
 *.static
 *.dynamic
index 0d6a7284abb35cb064fd40885d980bfb8c9a74f0..8805a54c13ec0647b306eeffdf8e869e2676c531 100644 (file)
@@ -187,7 +187,6 @@ NPARA:
     return EXIT_SUCCESS;
 
 MOT:
-    token[tokenFound].value[i] = 0;
     tokenValue[i] = 0;
     tokenType = MOT;
     return EXIT_SUCCESS;