Make YOUR OWN Programming Language - EP 2 - Parser

Опубликовано: 14 Ноябрь 2024
на канале: CodePulse
145,042
2.4k

Hello and welcome to the second episode on how to create your VERY OWN programming language in Python.

In the first three videos we will be focusing on adding support numbers and operators. After that we will expand our language to support the rest of the language features, such as strings, variables, if statements, for statements and functions.

In this second episode we create the parser, which takes in the tokens created by the lexer and builds up what we call an abstract syntax tree, which is basically a tree of the structure of the code. We can then traverse that tree in the next video and interpret it.

If you have any questions or problems, don't hesitate to leave a comment below! And don't forget to leave a like if you enjoy 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...

Uncle Bob Clean Architecture book: https://read.amazon.co.uk/kp/embed?as... (affiliate link)