parrot/main.py
2023-04-09 03:48:26 +02:00

15 lines
271 B
Python

from lexer import Lexer
from parser import Parser
def main() -> None:
text = "\"\\\"hello\\\\\""
lexer = Lexer(text)
parser = Parser(text, lexer)
parsed = parser.parse()
for node in parsed:
print(node)
if __name__ == "__main__":
main()