Skip to content

mfaizudd/kera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kera

An interpreter for kera language, my first attempt to create an interpreter.

Running the REPL

Using cargo

cargo run

It can now display correct expression precedence.

TODO:

  • Lexer
  • Parser
    • Statements
    • Expressions
  • Evaluation
  • REPL
  • Add more data types

Example

misal lima = 5;
misal sepuluh = 10;

misal tambah = fungsi(x, y) {
    kembalikan x + y;
}
misal larik = [1, 2, 3, tambah(lima, sepuluh)];

misal hasil = terakhir(larik);

jika hasil > 10 {
    kembalikan benar;
} lainnya {
    kembalikan salah;
}

Output: benar

About

Interpreter for kera language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages