Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1016 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 1016 Bytes

TS Lox

A TypeScript Implementation of Lox programming language by Robert Nystrom. What's unique about this is that you can define your own keywords. On the demo site, I've defined Nepali keywords; on the custom tab, you can update the keywords to your liking.

Try it and let me know what you think about this project.

Demo

https://tox-lang.vercel.app/

image

Install and Run

npm i

# Run the Repl
npm run tox

# Interpret from File
npm run tox <PATH_TO_ FILE>

# There are Lox Code Examples under lox/src/loxCode/*.lox
npm run tox lox/src/loxCode/block.lox

# Run the webapp
npm run web

Contributing

Contributions are always welcome!

I am still working on maing the contribution guidelines but feel free to open an issue or submit a PR.