started work on lexer
This commit is contained in:
13
main.py
Normal file
13
main.py
Normal 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())
|
||||
Reference in New Issue
Block a user