started work on lexer

This commit is contained in:
SpookyDervish
2025-10-13 06:55:35 +11:00
parent 6da4f73ffb
commit 07ca0fcc32
7 changed files with 193 additions and 6 deletions

13
main.py Normal file
View File

@@ -0,0 +1,13 @@
from lexer import Lexer
LEXER_DEBUG: bool = True
if __name__ == "__main__":
with open("tests/lexer.pla") as f:
code: str = f.read()
if LEXER_DEBUG:
debug_lex: Lexer = Lexer(source=code)
while debug_lex.current_char is not None:
print(debug_lex.next_token())