parrot/main.py
SimonFJ20 b8960f4548 init
2023-04-06 04:17:57 +02:00

15 lines
251 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_expr()
print(parsed)
if __name__ == "__main__":
main()