Skip to content

mfaizudd/kera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 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

Example

misal lima = 5;
misal sepuluh = 10;

misal tambah = fungsi(x, y) {
    kembalikan x + y;
}

misal hasil = tambah(lima, sepuluh);

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

About

Interpreter for kera language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages