GithubHelp home page GithubHelp logo

js-validate-lisp-string's Introduction

Lisp Parentheses Checker

This Lisp Parentheses Checker is a Node.js application designed to validate the parentheses in a given Lisp code string. It ensures that all parentheses are properly closed and nested, a common requirement for the correctness of Lisp code.

Features

  • Checks if the parentheses in a Lisp code string are correctly balanced.
  • Can be used from the command line to validate files containing Lisp code.
  • Includes unit tests to ensure the reliability of the checker.

Getting Started

Prerequisites

  • Node.js (recommended version 12 or higher)

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/your-username/lisp-parentheses-checker.git
  1. Navigate to the project directory:
cd lisp-parentheses-checker
  1. Install the necessary dependencies:
npm install

Usage

To check valid Lisp code string, pipe it directly from the command line:

cat testExamples/validLispProgram.lisp | npm start

To check invalid Lisp code string, pipe it directly from the command line:

cat testExamples/invalidLispProgram.lisp | npm start

Piping, takes the example file and streams it into the javascript application through stdin

Running Tests

To run the unit tests to ensure the program works as expected:

npm test

Development

This project is set up using Node.js and Jest for unit testing. The source code is located in the src directory, and tests are located with each file (quick check to make sure you have covered all tests). Contributions to extend functionality or improve the code are welcome.

Contributing

Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

Ensure to update tests as appropriate.

License

MIT

js-validate-lisp-string's People

Contributors

afinegan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.