Giter Site home page Giter Site logo

sv4u / scli-interpreter Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 738 KB

A Simple (Custom) List Interpreter

Home Page: http://sv4u.github.io/scli-interpreter

License: Other

Python 99.53% Shell 0.47%
lisp-interpreter scli scli-interpreter language mathematical-functions python

scli-interpreter's Introduction

A Simple (Custom) Lisp Interpreter

SCLI (A Simple (Custom) Lisp Interpreter) is a custom Lisp interpreter built in Python 2.7.x. It is meant to follow the language I developed that is an offshoot of Lisp. For more information you can head over to sv4u.github.io/scli-interpreter

Motivation

I have been interested in creating a programming language for the past year. So, I decided to read a bunch of manuals and then one day I finally tried writing one. This is the outcome of that day.

Releases

Currently, we have the alpha release here: github.com/sv4u/scli-interpreter/releases/tag/alpha

Install

To install, clone the repository into any directory you wish. Then, add that directory to your PATH so that you can execute scli from anywhere.

TODO

  • Create an executable version of SCLI.py
  • Add more default mathematical functions to the SCLI language
    • This was completed by adding the mathematics library
  • Create a more user friendly interface for programming (a portable GUI)
  • Create full flegded documentation
    • This documentation is only going to grow as features are added
  • Add a Strings, Equation Solving, and Statistics Library

Mathematical Functions Library - DONE

This language is meant to be mathematics heavy. Since I am quite interested in computer science research, SCLI is primarily a research language. Currently the list of mathematical functions to implement are:

Function Description Status
Modular exponentiation A simple x^y mod z operator Done
Square Root A simple square root operator Done (with added nroot operator)
Ceiling and Floor ceil(x) and floor(x) Done
Absolute Value abs(x) Done
Logarithms log(x) of multiple bases Done (three types of logs: base e, 2, and n)

String Functions Library - DONE

The functions to add to this library are:

Function Description Status
String Concatenation Concatenate two strings Done
Substring Substring between two values Done
Character At Finds the specific character at an index Done
Length Get the length of a specific string Done
Split Split a string on a regular expression Done

Equation Solving Library - STARTED

The functions to be added to this library are:

Function Description Status
Linear Solver Solves a linear equation Done
Quadratic Solver Solves a quadratic equation Done
Cubic Solver Solves a cubic equation Done
Exponential Solver Solves an exponential equation Not started
Logarithmic Solver Solves a logarithmic equation Not started
Polynomial Solver Solves a polynomial equation Deemed Not Possible
Derivative Calculator Calculates derivative Not started
Integral Calculator Calculate integral Not started
Polynomial Factoring Factors a polynomial expression Not started

Statistic Analysis Library - NOT STARTED

Some basic statistic analysis functions to be added are:

Function Description Status
Standard T-test Computes a standard T-test Not started
Z-score Calculator Computes a Z-score Not started
ANNOVA Calculator Computes an ANNOVA Not started
Multiple Distribution Calculator Calculates multiple discributions Not started

SCLI Editor

Similarly to how Python is bundled with IDLE, I would like to create a IDE for SCLI. This is currently the most long term goal as it will take the longest about of time.

Documentation

Adding a documentation to SCLI for learning how to use it and how it is extremely similar to Lisp would not only help me but also new users.

Contact

If you are interested in seeing this project grow or helping me, feel free to contact me at [email protected]. I'm always looking for help.

MIT License

Copyright (c) 2017 Sasank Venkata Vishnubhatla

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

  • Give full credit to the author
  • Properly cite this repository

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.