Simple Math Interpreter in Python (3/4) - Interpreter

preview_player
Показать описание
Welcome back to the third episode where we create our own simple math interpreter in Python. This video includes the final processing step - the interpreter - to get our calculations working. Special thanks to the top Patreon supporter Helge Sverre Hessevik Liseth, and thanks to all you viewers for supporting me on this YouTube journey. We've just reached 1,000 subscribed and that's quite an achievement to me :)

All the code for this series is available on GitHub:
Рекомендации по теме
Комментарии
Автор

Thanks for the great videos - following along in Java was easy.

minutes
Автор

Very nice tutorial for me who has never done anything with regarding parsers. I have improved the factor rule to allow expression such as (10)(10) to be evaluated as 10 * 10.

nocodenoblunder
Автор

Thank you so much for all your tuto :) Please help me to implement exponentiation in Lexer module. x², x³.

the_art_of_thinking
Автор

Right now if I enter something like 3/3*4 it evaluates to 0.25 instead of 4 (following order of operations), meaning it's holding multiplication to a higher precedence. How can I avoid this?

anahitahassan
welcome to shbcf.ru