Coder Social home page Coder Social logo

chapped-lisp's Introduction

Chapped Lisp

Overview

This is a basic lisp interpreter project done as part of an application to The Recurse Center.

Gaping Holes

There is near-zero error handling of invalid syntax and zero code to generate helpful error messages so far. If you provide invalid lisp syntax, at the moment, You're Gonna Have a Bad Time™.

CLI Usage

  • node ./code/cli.js '(+ 1 2)'

Usage from node.js code

const chapped = require("chapped-lisp");
console.log(chapped("(+ 42 43)"));

Command Line Usage

npm install chapped-lisp
npx chapped-lisp '(max 43 42)'
# prints 43

For npm prior to v5.2:

npm install chapped-lisp
$(npm bin)/chapped-lisp '(max 43 42)'

Developer How To...

  • Setup after clone
    • Install node.js
      • Use the version specified by the .nvmrc file
      • nvm recommended
    • npm install
  • Run all tests: npm test
  • Analyze code coverage: npm run coverage
  • Run some tests: tap code/cli-tap.js code/lex-tap.js
  • Run lint: npm run lint
  • Run the main CLI: node ./code/cli.js '(+ 1 2)'

chapped-lisp's People

Contributors

focusaurus avatar

Watchers

 avatar  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.