Skip to content

Files

Latest commit

780cc14 · Jan 27, 2023

History

History
33 lines (21 loc) · 550 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 550 Bytes

Simple Interpreter

This project implements a Lexer, Parser and Interpreter for a simple language. An example script can be found in example.txt

Build

To build the project, simply run:

cargo build --release

The executable can be found in target/release

Run

The interpreter cli accepts a single argument that points to a source file, like the provided example.txt

cd target/release

Windows:

.\simple-interpreter.exe ..\..\example.txt

Linux:

./simple-interpreter ../../example.txt