Skip to content

About

📚 A lox interpreter as described in https://craftinginterpreters.com

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

70 Commits

Folders and files

Repository files navigation

"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

About

📚 A lox interpreter as described in https://craftinginterpreters.com

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages