Skip to content

SiddharthShyniben/lox

Repository files navigation

jlox

This is a lox compiler in javascript.

for (var a = 1; a < 10; a = a + 1) {
  print a;
}

if (condition) {
  print "yes";
} else {
  print "no";
}

makeBreakfast(bacon, eggs, toast);

fun sayHi(name) {
  print "Hi, " + name;
}

sayHi("John");

Running

node index for a REPL. node index <file> to run a file.

Releases

No releases published

Packages

No packages published