Skip to content

Latest commit

History

History
36 lines (27 loc) 路 848 Bytes

File metadata and controls

36 lines (27 loc) 路 848 Bytes

"Build your own Interpreter" Challenge.
Following the book Crafting Interpreters by Robert Nystrom.

Dependencies

Running a script

$> cat test.lox
var hello = "Hello";
{
    var hello = "Guten Tag";
    print hello + ", Reader!";
}
print hello + ", Reader!";

$> ./your_program.sh run test.lox
Guten Tag, Reader!
Hello, Reader!

Alternatively to running you can:

  • tokenize to see the list of tokens in the source file

Status

  • Lexer: OK
  • Recursive descent parser: OK
  • Expression evaluator: OK
  • Statements & Expression statements & Scope: OK
  • Control flow: TODO