Make YOUR OWN Programming Language - EP 4 - Variables!
CodePulse
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 :)
78624795 Bytes