Hello and welcome to the fourth episode on how to create your VERY OWN programming language in Python.
In this episode we add support for variables in our language. This requires updating the lexer, parser and interpreter, along with adding a new SymbolTable class.
We also do a small bit of refactoring at the end of the video, which improves our error messages and will also make our code ready for the next few episodes.
In the next episode we will be adding comparisons to the language, i.e. equals, not equals, less than or equals, greater than or equals, etc. We can then use those comparisons in the episodes which follow to implement IF statements, FOR statements, etc.
If you have any questions or problems, please leave a comment below! I will try my best to help out ! And don't forget to leave a like if you enjoyed the video :)
LINKS
Python3 - https://www.python.org/downloads/
This series is loosely based on https://ruslanspivak.com/lsbasi-part1/
ALL CODE IS ON GITHUB
https://github.com/davidcallanan/py-b...
Consider supporting me on PATREON
/ codepulse
Uncle Bob Clean Architecture book: https://read.amazon.co.uk/kp/embed?as... (affiliate link)
Watch video Make YOUR OWN Programming Language - EP 4 - Variables! online without registration, duration hours minute second in high quality. This video was added by user CodePulse 08 March 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 48,231 once and liked it 767 people.