-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# xolsh - hslox | ||
|
||
A work-in-progress Haskell implementation of the `lox` programming language (jlox) from the [Crafting Interpreters Book](https://craftinginterpreters.com/). | ||
A complete Haskell tree-walking implementation of the `lox` programming language (jlox) from the [Crafting Interpreters Book](https://craftinginterpreters.com/). It fully passes the jlox test suite. | ||
|
||
The code style of the interpreter is mostly a port/adaptation of the original java implementation, with a more idiomatic Haskell style where possible. | ||
|
||
- Areas for improvement: | ||
- Try to write a one-pass scanning-parsing step with parser combinators (w/flatparse) to compare performance. | ||
- Optimize variable & field access (through vectors?). | ||
- A rewrite with an effect system would probably give many benefits, specially to the code style. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters