Skip to content

Erich-Reitz/lox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nlox

Lox interpreter for CS 403 project

Issues

  • No REPL support.

Development Environment

This project is written in the Nim programming language and requires version 2.0.0 or greater. To install Nim, visit: Install Nim. Building the project requires Nimble which is bundled with Nim installation. To the build the binary, execute nimble build in the project directory.

Commands

  • format: find src/ -name "*.nim" -exec nimpretty {} \;
  • build: nimble build
  • test: nimble test

Testing

The program used for testing can be viewed at tests/test.nim. The program will automatically execute each test case, invoking the lox program with a specific test file located at tests/<testname>/<testname>.lox. The expected output is in the same folder, at tests/<testname>/<testname>.out. The test program captures the output of the process and asserts that it is equal to the expected output for the test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages