Finish compiler

This commit is contained in:
Augusto Gunsch
2020-12-31 17:38:41 -03:00
parent b9a553b107
commit b7fe5b8f45
5 changed files with 10 additions and 10 deletions

View File

@@ -201,10 +201,10 @@ TOKEN* tokenize(char* file) {
FILE* input = fopen(file, "r");
unsigned char c;
while(c = fgetc(input), !feof(input)) {
if(c == '\n') {
while(!feof(input)) {
c = fgetc(input);
if(c == '\n')
lnscount++;
}
else if(c == '/' && handlecomment(input, &lnscount))
continue;
else if(c == '"') {