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)
|
2023-04-09 02:48:26 +01:00
|
|
|
parsed = parser.parse()
|
|
|
|
for node in parsed:
|
|
|
|
print(node)
|
2023-04-06 03:17:57 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|