🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

tslox

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslox

A **TypeScript** implementation of the Lox programming language ([as specified in the book _Crafting Interpeters_](https://craftinginterpreters.com/the-lox-language.html)).

latest
npmnpm
Version
0.0.1-beta.1
Version published
Maintainers
1
Created
Source

tslox

A TypeScript implementation of the Lox programming language (as specified in the book Crafting Interpeters).

Wayfinding

  • The main TypeScript interpreter code for the library can be found in the tslox/ folder.
    • npm test will run the tests in tslox/tests/ to ensure assertions are met.
    • npm run build will output the compiled library code into dist/.
  • An interactive "test bench" — is also provided. It is a React app that allows you to explore, understand, and prod the tslox library through a web interface.
    • Play with the test bench live! https://tslox.netlify.app
    • npm run dev launches the test bench on a local server. The app will auto-reload with the latest changes to the interpreter source code as well as the test bench UI code.
    • npm run build:webapp will output the compiled webapp into dist/. (Useful for deployment and hosting the UI.)

Prerequisites

Clone the repo and install dependencies.

npm install

FAQs

Package last updated on 05 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts