Skip to content

A Bytecode Interpreter for Python, based on the Clox interpreter by Bob Nystrom from https://craftinginterpreters.com/

Notifications You must be signed in to change notification settings

ShaunMitchell98/PyInt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyInt

PyInt is a Python Interpreter based on the Clox interpreter by Bob Nystrom from https://craftinginterpreters.com/

REPL mode

By default, when you run the executable it starts a REPL, where you can run code quickly. By passing arguements, you can get additional output such as the executed bytecode and the state of the stack.

REPL with Executed Bytecode

The output doesn't have to be to the terminal, output can be redirected to a file by replacing t with f and adding the file path as the next input, for example:

Execution Output to File

As well as writing commands in the terminal, you can run a file using the arguement -fi and passing the filepath:

File Input

About

A Bytecode Interpreter for Python, based on the Clox interpreter by Bob Nystrom from https://craftinginterpreters.com/

Resources

Stars

Watchers

Forks

Packages

No packages published