all repos

gbf @ 2bfb08c

⭐ gleaming brainfuck
2 files changed, 3 insertions(+), 3 deletions(-)
rename end of file
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-10-17 13:56:03 +0300
Change ID: wmwpllnnxtxmypusloqqrmpwutmlvwww
Parent: 374a8c7
M src/gbf/lexer.gleam

@@ -22,7 +22,7 @@ }

fn do_lex(lexer: Lexer, tokens: List(#(Token, Position))) { case next(lexer) { - #(_, #(token.EOF, _)) -> tokens + #(_, #(token.EndOfFile, _)) -> tokens #(lexer, token) -> do_lex(lexer, [token, ..tokens]) } }

@@ -43,7 +43,7 @@ "]" <> source -> token(lexer, token.EndBlock, source, 1)

_ -> case string.pop_grapheme(lexer.source) { - Error(_) -> #(lexer, #(token.EOF, Position(lexer.offset))) + Error(_) -> #(lexer, #(token.EndOfFile, Position(lexer.offset))) Ok(_) -> comment(lexer, lexer.offset) } }
M src/gbf/token.gleam

@@ -35,5 +35,5 @@ /// `]` symbol

EndBlock /// End of file - EOF + EndOfFile }