Skip to main content
Logo of NumberScript

NumberScript

Downloads-Month Downloads-Total Discord

NumberScript Discord-Invite

Possibly the world's simplest and restricted language.

Installation (pip)

pip install NumberScript

Features

  • No spaces (Yup, you read that right)
  • Comments
  • Only 8 commands
  • A shell, a repl and a package manager

Docs

Documentation: https://sas2k.github.io/NumberScript

CLI and repl

To use the repl just run python -m NumberScript

To run a file use python -m NumberScript -f Path/To/File

Commands

commands:  0  |  1  |  2 (@string.index)  |  3  |  4  |  5  |  6 |  7
input: ~
random: *
comments: %
import: #
arithmetic: ^
Compare: = | ! | < | >
operations: + | - | * | / |
If-Else: ? :

NOTE: You can't have different arithmetic signs in a single ^ : meaning you can do 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
?a=Hello:2a:2Bye %Check-A-If-Its-Hello-Then-Display-It-Else-Display-Bye
1 %Ends %The %program

You can also have this program like. (Without any new-lines) 0 3a:Hello 2a 4a=Hello:2a:2Bye 1

Here is another program that loops over digits to check if they are lucky

%Is-This-lucky:Checks-If-The-Number-Is-Lucky
0
3lucky_num:9
6n\10\?n=lucky_num:2n|2Is-The-Lucky-Number:2n|2Is-Not-The-Number
1

You can find more examples in the examples folder.

So, since there aren't any spaces what can we use instead of them? You can use _ or -.

To-Do

  • Possibly OOP
  • Error Catching System

Metadata

Release files for NumberScript 1.13.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NumberScript 1.13.5
File Size Uploaded
NumberScript-1.13.5.tar.gz 6.9 kB Details

Release files / NumberScript-1.13.5.tar.gz

Download URL NumberScript-1.13.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a4e95c1ed353cd39ea6b2c0581782dc1250fdd529ee61ecdf9ba4a36c5bc88
BLAKE2b-256 checksum
How to use checksums
3400529d1ea24488353d4dedebee3befa85acd832102e08c3fcbc375b7aed192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Release history Release notifications | RSS feed

This release

1.13.5 This release

1 release file

1.13.2

1 release file

1.13.1

1 release file

1.13.0

1 release file

1.12.0

1 release file

1.11.7

1 release file

1.11.6

1 release file

1.11.5

1 release file

1.11.0

1 release file

1.10.0

1 release file

1.9.4

1 release file

1.9.3

1 release file

1.9.2

1 release file

1.9.1

1 release file

1.9.0

1 release file

1.8.0

1 release file

1.7.0

1 release file

1.6.1

1 release file

1.5.5

1 release file

1.5.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page