Skip to main content

possibly the world's most simplest and restricted language.

Project description

NumberScript

PyPI - Downloads

possibly the world's most simplest and restricted language.

Installation

pip

pip install NumberScript

Features

  • No spaces (Yup, you read that right)
  • Comments
  • Only 5 commands
  • A shell and a runner
  • No loops (Who needs 'em)

Docs

commands

commands:  0  |  1  |  2  |  3  | 4 | 5
comments: %
arithmetic: ^
Compare: = | ! | < | >
operations: + | - | * | / |
If-Else: ? :

NOTE: You can't have different arithmetic signs in a single ^ : so you can do this 1+1+2 but not 1+1*2 : Also NO SPACES.

syntax

A basic program

%Test.ns
0 %Starts %The %Program
3a:Hello %Sets %The %Variable %a %to %Hello
2a %Displays %a
4a=Hello|2a|2Bye %Check-A-If-Its-Hello-Then-Display-It-Else-Display-Bye
1 %Ends %The %program

Addition

%calculating
0
3a:4
3b:8
^a+b %NoSpacesPlease
1

If else

%Is-This-lucky
0
3lucky_num:9
?lucky_num=8:28-Is-The-Lucky-Num:28-Is-Not-Lucky
?lucky_num=9:29-Is-The-Lucky-Num:29-Is-Not-Lucky
?lucky_num=10:210-Is-The-Lucky-Num:210-Is-Not-Lucky
1

So, since there aren't any spaces what can we use instead of them?

You can use _ or -.

To-Do

  • Add loops

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NumberScript-1.7.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page