In this short series, we are going to be writing a simple interpreter in Python that can understand and process basic math calculations.
This is useful to learn how to write a program that can understand a human-readable format, and this knowledge can be expanded to creating your own data language, programming language, etc.
You can obtain the source code from: https://github.com/davidcallanan/py-s...
In the first 3 episodes of this series we will write the lexer, the parser and the interpreter. Those are the fundamental steps to writing any interpreter.
In the final episode (optional), we will add unit testing to our language, so that we can guarantee everything is still working if we make changes in the future.
If you enjoy the video, don't forget to leave a like! And subscribe so you don't any of my future videos.
Special thanks to my top Patreon supporter: Helge Sverre Hessevik Liseth
Смотрите видео Simple Math Interpreter in Python (1/4) - Lexer онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodePulse 18 Февраль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 31,190 раз и оно понравилось 728 людям.