Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 643 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 643 Bytes

Pylox

A python implementation of interpreter for lox language, following the structure shown on the book Crafting Interpreters.

Overview

  • Scanning
  • Representing Code
  • Evaluating Expressions
  • Statements and State
  • Control Flow
  • Functions
  • Resolving and Binding
  • Classes
  • Inheritance

How to run

To run a example

$ git clone https://github.com/peterhttps/pylox

$ cd pylox

$ python3 src/main.py src/examples/testsPrint.lox

To run REPL

$ python3 src/main.py

Note: on REPL we dont have shared environment for multiples commands