Git Product home page Git Product logo

whispy_lispy's Introduction

whispy_lispy

Documentation Status Travis-CI Build Status AppVeyor Build Status Coverage Status Code Quality Status Scrutinizer Status
PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported imlementations

Toy LISP implementation - because everyone does it!

  • Free software: MIT license

Disclaimer

This document will get deprecated fast. I'm working on features, and that most likely means I'll forget to update the docs.

Features

  • Can evaluate strings from the command line:

    python -m whispy_lispy '(print 3)'
    
  • Can run an interactive REPL interpreter:

    python -m whispy_lispy -r
    
  • The interpreter knows these builtin functions:

def, quote, sum, sub, quit

  • The interpreter evaluates literals and function calls, and displays the result

Functions

  • def defines a value in the current (global) scope:

    (WL)$ (def x 9)
    
  • quote should be the lisp quote, but it's buggy atm.

  • sum sums its arguments:

    (WL)$ (sum 1 2 3 4 5)
    
  • sub subtracts from the first argument, all of the rest:

    (WL)$ (sub 5 1 2)
    
  • quit quits the interpreter (optionally, provide an int as an exit code):

    (WL)$ (quit)
    (WL)$ (quit 127)
    

Development

To run the all tests run:

tox

Future reading

Lisp interpreter (diddn't read it, but heard it's cool) http://norvig.com/lispy.html

whispy_lispy's People

Contributors

vladiibine avatar

Stargazers

CodeReclaimers avatar

Watchers

James Cloos 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.