Giter Site home page Giter Site logo

zer0-official / simpl-py Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 10.44 MB

Simpl-Py is an easy, simple, and fast recreational programming language, sharing similar syntax with Python.

Home Page: https://github.com/Zer0-Official/Simpl-Py/wiki

License: Other

Python 100.00%
programming-language simple-python simplified simplified-python python python3 coding-language simple-language easy-to-use interpreter

simpl-py's Introduction

Simpl-Py (๐Ÿ—ฃ simple-pie)

Simpl-Py is an easy, fast, and simple recreational programming language that is being turned into something useful. This language shares similar syntax with Python.
GitHub Issues

News

Simpl-Py's BIGGEST UPDATE EVER!

Simpl-Py 0.8.0-beta is definitely Simpl-Py's biggest update ever! Here are a few highlights:

  • Module System Working! (import custom modules and access functions)
  • New Website: switching from Google Sites to GitHub Pages
  • New Call Function: dial numbers for advanced-specific features in Simpl-Py like DEV MODE
  • FASTER!
    • The Simpl-Py interpreter (0.8.0 and up) is now 25% faster than previous versions
    • Efficient code and new systems make faster response
    • Newlines do not pass through handlers
  • Tired of hundreds of if statements:
    • New model uses tokens instead of if statements with strings
    • Improves errors and debugging
      • More than 25 new error codes with optional detailed information
  • MORE!!!
    • Read the version release for all changes

Code

The syntax in Simpl-Py is easy to learn and understand. Here is the hello world program in Simpl-Py:

>> print
Print What? >> Hello World
Hello World

(">>" shows user input)

Features

  • Full interpreter
  • Support on Python 3.6+
  • Documentation
  • Over 25 errors with codes for assistance

Download and Run

There are 2 ways to download Simpl-Py

Method 1

Click the 'Download Code' button above. Unzip the file and execute the Simpl.py file (or the Simpl-Py.exe if provided).

Method 2

git clone https://github.com/zer0-official/simpl-py
The requirements are found in requirements.txt

More Code

Here are some examples made in Simpl-Py:

(">>" shows user input)

print.echo example:

print.echo will print any text on the screen as many times as you want (almost)

>> print.echo
Echo What?  >> simpl-py (text to echo)
Echo Space?  >> 3 (number of spaces between strings)
Echo Amount? >> 5 (times to echo)

Output:

simpl-py   simpl-py   simpl-py   simpl-py   simpl-py

print_math example:

print_math will do basic math operations with a (kind of) infinite amount of integers

>> print_math
Integer Amount?  >> 3 (amount of numbers to operate)
Integer:  >> 4
Integer:  >> 7
Integer:  >> 2
Operator (+, -, *, /):  >> +

Output:

13

Module example:

Included in Simpl-Py 0.8.0-beta, is a fun feature that gives you the ability to import modules. Simpl-Py comes with a test module just for you to import, so follow along with your program! As expected, importing is easy:

>> @module                          (the name after "@" will be imported)
This is a Simpl-Py Example Module   (welcome text displayed after first import)
What Function?  >> inside           (call function inside module)
This is inside the function.        (output from module)

Great! We just imported a module and accessed a function inside. Try calling inside from @module again to see that the welcome text is not displayed twice.

Read the docs for more info on modules

Development Programs

Development programs are states of focus for projects like Simpl-Py. You can take a topic or feature that needs improvement in a project and turn it into a dev program so developers have a focus and a goal.

Here is a list of Dev Programs for Simpl-Py:

Simpl-Py EXtended (2022) CLOSED

Simpl-Py EXtended (SPY-EX) is the first Dev Program for Simpl-Py. This program focuses on making the language open to customization and adjustments for the user. This program may run for about 2 months.

Goals Accomplished:

  • A new interpreter console for the language with enhancing and adjustment options
  • A module system for users to add their own piece of code into the pie
  • New advertising and communication guidelines for the user
  • More interaction with the user within the language
  • Fixes

Credits

Contribute

To contribute, solve an issue, send a PR, report a bug, etc. Contributors are found in src/BaseFunc/credits.txt.

Creator

Simpl-Py by Zer0 2023

simpl-py's People

Contributors

zer0-official avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simpl-py's Issues

Improved README.md

Simpl-Py needs a better README and I am not good at making them. If someone would be kind enough to improve the README and put in a PR, that would be wonderful.

`/stop` produces Main Error {S-020x}

Describe the bug
When the /stop command is typed, there is a Main Error {S-020x}. /stop will not stop the program.

To Reproduce
Steps to reproduce the behavior:

  1. Run SImpl-Py
  2. Type /stop
  3. See error

Expected behavior
/stop is supposed to stop the program and not return an error.

Screenshots
s-py error

Desktop (please complete the following information):

  • OS: Windows 10

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.