parrot/main.py

15 lines
251 B
Python
Raw Normal View History

2023-04-06 03:17:57 +01:00
from lexer import Lexer
from parser import Parser
def main() -> None:
text = "\"\\\"hello\\\\\""
lexer = Lexer(text)
parser = Parser(text, lexer)
parsed = parser.parse_expr()
print(parsed)
if __name__ == "__main__":
main()