Skip to content

peterhttps/pylox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A python interpreter of lox language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages