15 lines
271 B
Python
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()
|