Skip to content

Latest commit

 

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages