Skip to content

joelbeedle/blang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

blang

blang, a language inspired by lox

Implemented using VM and bytecode interpreter written in C.

Usage

  • git clone https://github.com/joelbeedle/blang.git
  • cd blang
  • make
  • ./build/blang <optional: file>

Examples

func fib(n) {
  if (n < 2) return n;
  return fib(n - 2) + fib(n - 1);
}
func makeCounter() {
  let count = 0;
  return fun() {
    count = count + 1;
    return count;
  };
}

yes, blang stands for beedlelanguage

About

Bytecode VM interpreter for blang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published