mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Basic infile reading is working, untested
This commit is contained in:
@@ -236,6 +236,10 @@ void Toy_bindLexer(Toy_Lexer* lexer, const char* source) {
|
||||
}
|
||||
|
||||
Toy_Token Toy_private_scanLexer(Toy_Lexer* lexer) {
|
||||
if (lexer->source == NULL) {
|
||||
return makeErrorToken(lexer, "Missing source code in lexer");
|
||||
}
|
||||
|
||||
eatWhitespace(lexer);
|
||||
|
||||
lexer->start = lexer->current;
|
||||
|
||||
Reference in New Issue
Block a user