A simple Lisp to JavaScript compiler implemented in TypeScript. This project provides a basic implementation of a compiler that can convert a subset of Lisp code into equivalent JavaScript code.
- Basic arithmetic operations:
+
,-
,*
,/
- Variable definition:
(define var value)
- Function definition:
(define (func-name args) body)
- Function call:
(func-name args)
To get the project running locally, follow these steps:
- Clone the repository:
git clone https://github.com/jkup/lisp-to-js-compiler.git
- Change to the project directory:
cd lisp-to-js-compiler
- Install the project dependencies:
npm install
Now you should have a working development environment.
The project includes a test suite using Jest. To run the tests, execute the following command:
npm test
This command runs the test suite and displays the test results in the console.
Contributions are welcome! If you'd like to contribute, please fork the repository, create a new branch with your changes, and submit a pull request.
This project is licensed under the MIT License.