Code Monkey home page Code Monkey logo

lisp_interpreter's Introduction

README

This a lisp interpreter. The purpose of the interpreter is to process some basic lisp commands and learn about some of the basic concepts behind creating an interpreter. It is built in Java.

Instructions: - To compile, simply enter 'make' into the command line. - To run, use the command 'java Interface'

    - To exit the interpreter, enter 'quit' into the cmd line
    - To change the scoping mechanism from static (default) to Dynamic (broken),
    enter 'dynamic' into the command line
    - If in a dynamic mode, and needing to change back to a static mode,
    enter 'static' into the command line

Details: Every sample that was provided by the TAs runs and displays properly and is written to an autogenerated file. Please make sure that the input is exactly the same as the samples. Although there is a little flexibility for errors in spaces, error checking is not very advanced.

    I have attempted to implemented the extra credit, and it seems to work,
    by sharing the function and normal AR variable hash-maps.


    Special Keywords:
            'quote'         - will quote the math equation input
            'if'            - will evaluate and execute based on a condition
            'define'        - will define a variable
            'set!'          - will assign a value to a previously defined variable
            'defun'         - will define a function (lambda as listed in assignment)

    Built-in Procedures:
            'exp'           - exponential figure    -> exp(value, exponent)
            'cos'           - radians cosine        -> cos(value)
            'sin'           - radians sine          -> sin(value)
            'tan'           - radians tangent       -> tan(value)
            'sqrt'          - square root           -> sqrt(value)

lisp_interpreter's People

Contributors

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