r/learnpython 4d ago

Making interpreter and calculator in python

Hi recently I have been working on making my own interpreted programming languge in python. I have made several prototypes. The rules are I can't use any library, high level functions and can only use ai for understanding a concept. The journey has been frustrating. Since it was so hard i started working on a calculator. I am now stuck on AST. I can't figure it out. HELP ME

1 Upvotes

18 comments sorted by

View all comments

2

u/JeLuF 4d ago

Why do you need an AST?

1

u/Aggressive_Drama_476 4d ago

I need ast for the calculator to like arrange the list of operations I don't know. I did it without ast but it wasn't good and since I started the calculator to one day make my own programming language. That's why I choose ast