possibly the world's most simplest and restricted language.
Project description
NumberScript
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 or If-else (Who needs 'em)
Docs
commands
commands: 0 | 1 | 2 | 3 | 4
comments: %
arithmetic: ^
Compare: = | ! | < | >
operations: + | - | * | / |
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
So, since there aren't any spaces what can we use instead of them?
You can use _ or -.
To-Do
- If-Else
Project details
Release history Release notifications | RSS feed
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.6.1.tar.gz
(3.7 kB
view details)
File details
Details for the file NumberScript-1.6.1.tar.gz
.
File metadata
- Download URL: NumberScript-1.6.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c6586fc641d873290579063075edb34deb9e8860bec365965a50bded012215 |
|
MD5 | 7dab329c6bbd27d22d85d970fce0acb5 |
|
BLAKE2b-256 | efb9fc235c77f54ae578506833c2e486ab45606f6572c6334bd1c587724e1086 |