Merge branch 'lexer' into dev
This commit is contained in:
commit
6b539d1eac
1 changed files with 14 additions and 0 deletions
|
|
@ -291,6 +291,13 @@ struct token *peek_token(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (stream[i] == EOF)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Lexing error: unmatched quote\n");
|
||||||
|
|
||||||
|
// error handling
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -332,6 +339,13 @@ struct token *pop_token(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (stream[i] == EOF)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Lexing error: unmatched quote\n");
|
||||||
|
|
||||||
|
// error handling
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue