You are browsing as a guest. Sign up (or log in) to start making projects!

43m 15s logged

Devlog #3
Today’s session was mostly about moving Blink from just reading code to actually understanding it.
What I worked on:
-Finished setting up the Parser for Blink.
-Created the basic AST (Abstract Syntax Tree) nodes:
-Connected the Lexer and Parser together.

So,
Made Blink recognize simple assignment statements like:
name = “Arpitaa”

And successfully generated Blink’s first AST (Abstract Syntax Tree which is a tree-like structure created by the parser that represents the meaning and structure of a program.) , which means the language can now understand the structure of code instead of just reading characters.

Challenges faced:
Spent some time debugging Python indentation errors.
Accidentally mixed up code between parser.py and ast_nodes.py, so I reorganized the project files properly.

Now next, I have to build the Interpreter, so Blink can actually execute code. The code i ran and the results i got on executing the code today :

0
97

Comments 2

@satvikhardat

Great progress! btw this should devlog 3

@arpitaanuna

@satvikhardat Oh yh, thanks