Back to Browse

Make YOUR OWN Programming Language - EP 4 - Variables!

51.3K views
Mar 8, 2019
22:20

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-basicinterp Consider supporting me on PATREON https://www.patreon.com/CodePulse Uncle Bob Clean Architecture book: https://read.amazon.co.uk/kp/embed?asin=B075LRM681&preview=newtab&linkCode=kpe&ref_=cm_sw_r_kb_dp_zbbTDb7E1P022&tag=davidcallanan-20 (affiliate link)

Download

1 formats

Video Formats

360pmp437.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Make YOUR OWN Programming Language - EP 4 - Variables! | NatokHD