Skip to content

ade-sede/lox-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Contributors 2

  •  
  •