https://github.com/missingfaktor/lox-in-clojure
Tree-walking interpreter for Lox language, from the book "Crafting Interpreters"
https://github.com/missingfaktor/lox-in-clojure
Last synced: 5 months ago
JSON representation
Tree-walking interpreter for Lox language, from the book "Crafting Interpreters"
- Host: GitHub
- URL: https://github.com/missingfaktor/lox-in-clojure
- Owner: missingfaktor
- Created: 2018-04-04T22:46:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T17:27:36.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T10:11:20.554Z (about 1 year ago)
- Language: Clojure
- Size: 41 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lox-in-clojure
[](https://travis-ci.org/missingfaktor/lox-in-clojure)
This is a Clojure implementation of a tree-walking interpreter for Lox language from [Bob Nystorm](https://twitter.com/munificentbob)'s excellent book ["Crafting Interpreters"](http://craftinginterpreters.com/).
# Running
If you wish to play with this project, simply run `lein run` from within the project directory, and you will be greeted with a barebone Lox REPL.
# Deviations
Since the only aim of this project is learning, I am deviating from the book in a number of ways: experimenting with things not covered in the book, making different choices with syntax and semantics, dropping bits I am not particularly interested in learning. A few of these deviations:
- I didn't hand-roll a scanner and a parser. I used a parser combinator library instead.
- I picked Lisp syntax for my version of Lox.