Added a function to remove an item from the generic list, which is mainly used for the tokens.
This commit is contained in:
+3
-3
@@ -20,6 +20,9 @@ int main(int argc, char* args[]) {
|
||||
if (!ReadAllString(args[1], &source_code, &bytes_read)) return EX_IOERR;
|
||||
|
||||
List* list = GenerateTokenList(source_code);
|
||||
|
||||
ParseTokens(list);
|
||||
|
||||
char mnemonic[12];
|
||||
|
||||
for(int i = 0; i < list->size; i++) {
|
||||
@@ -75,8 +78,5 @@ int main(int argc, char* args[]) {
|
||||
printf("%s ", t->Lemexe);
|
||||
}
|
||||
}
|
||||
|
||||
ParseTokens(list);
|
||||
|
||||
free(source_code);
|
||||
}
|
||||
Reference in New Issue
Block a user