Skip to content

bjoroen/Yafika-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yafika-Script

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.

Syntax

// 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
}

TODO:

  • Lexer

  • Parser

  • Evaluator

  • Error handling

  • Performance monitoring and improvements

  • Compiler

Learning resources

Crafting Interpreters by Robert Nystrom

Writing An Interpreter In Go by Thorsten Ball

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages