#Devlog 5
Today was another huge milestone for Blink! The language is starting to feel much more like an actual programming language now.
Added support for numbers in Blink. Improved the interpreter to handle numerical values instead of only strings.
Made arithmetic operations work successfully, including expressions using operators like +, -, *, and /. Improved BinaryOperationNode so Blink can create and process proper expression trees.
Spent a lot of time testing and debugging how these new features interact with the existing lexer, parser, AST, and interpreter, yesterday as well. Understanding how every feature needs support from multiple parts of the language made the process much clearer.
A few challenges I faced:
- Making sure different data types (strings and numbers) are handled correctly.
- Connecting new syntax with AST nodes and interpreter logic.
- Fixing bugs where small parser changes affected execution.
Blink can now:
-Print outputs using say
-Store and use values
-Perform calculations
-Take user input
-Make decisions using conditions
-Repeat instructions using loops
Next, I want to focus on improving error handling, adding more features, and eventually creating a playground where anyone can write and run Blink code.