Skip to content

jkup/lisptojs

Repository files navigation

Lisp to JavaScript Compiler

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.

Features

  • Basic arithmetic operations: +, -, *, /
  • Variable definition: (define var value)
  • Function definition: (define (func-name args) body)
  • Function call: (func-name args)

Prerequisites

  • Node.js (version 14.x or higher)
  • npm (version 6.x or higher, usually bundled with Node.js)

Getting Started

To get the project running locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/jkup/lisp-to-js-compiler.git
  1. Change to the project directory:
cd lisp-to-js-compiler
  1. Install the project dependencies:
npm install

Now you should have a working development environment.

Running the Tests

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.

Contributing

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.

License

This project is licensed under the MIT License.

About

a simple list to js compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published