Created
June 21, 2018 02:00
-
-
Save marcelogdeandrade/0eb851ed52cc1a49df65e4ce2404d3b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lexer import Lexer | |
text_input = """ | |
print(4 + 4 - 2); | |
""" | |
lexer = Lexer().get_lexer() | |
tokens = lexer.lex(text_input) | |
for token in tokens: | |
print(token) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment