source-academy / py-slang

Python sublanguage for SICP
Apache License 2.0
0 stars 0 forks source link

Initial implementation of parser, validator, translator #1

Closed Fidget-Spinner closed 1 year ago

Fidget-Spinner commented 1 year ago

TODO: Tests are not set up yet. Code is also somewhat rough. Please bear with me!

The main thing I need review is with the license text. For full transparency, some method names and method APIs along with some rudimentary functions are from the book "Crafting Interpreters" by Robert Nystrom. For files that may have referenced some code from there, I have included full acknowledgements in the header, a copy of the MIT license the code snippets are licensed under, and also documented my own changes over the original.

I estimate that less than 10% of the original code from his book is in those files. The book is written in Java and so are the code snippets, not TypeScript. For rudimentary functions that I use, I have adapted/ported them myself over to TypeScript from the book.

The affected files:

All other files are written by me (or a machine).