Yafika-script is an implementation of an interpreter for my own scripting language written in Rust.
This is a project for me to learn more about programming languages and how they work, this is just a toy language I will use for learning, and hopefully one day I can use it to write some software for myself.
Engaging in this project has brought me immense joy and satisfaction in my programming endeavors.
// Variable declaration
let x = 123 + 2 * 6
let y = "hello world"
// Functions
let add = fn(a,b) { return a + b}
add(5,2)
// if else
if (2 > 1) {
return 5
} else {
return 4
}
-
Lexer
-
Parser
-
Evaluator
-
Error handling
-
Performance monitoring and improvements
-
Compiler
Crafting Interpreters by Robert Nystrom