The Num Stack Arithmac programming language.
Project description
Num Stack Arithmac
Install via:
pip install num_stack_arithmac
Pre-execution
Input is given by specifying the start number.
Instructions
Here are the different instructions:
+
increments the number.
-
decrements the number.
%
performs reduction modulo 2 on the number.
^
squares the number.
r
takes the square root of the number.
p
prints the decimal representation of the number.
q
prints the character with the codepoint of the number.
b
prints the binary representation of the number.
x
prints the hexadecimal representation of the number.
o
prints the boolean representation of the number.
s
halts the programme.
All other characters are no-ops. If you use \\
or .
in your programme, the compiler will incorrectly think you are specifying the file path if you are typing in raw code.
Example
Here is an example programme that checks whether a number is even or odd (the number is given by the starting value):
%+%o
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
Built Distribution
Hashes for num_stack_arithmac-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1bde8f561d8b4471c6457d266be5a6da140a69e7947b96241aaab56299b654 |
|
MD5 | e3dbbdc2927030db3e132f6c985d5259 |
|
BLAKE2b-256 | 6b764dbbc7ffa3d53f1afcf795dcac935fa8241eafb93207f22565862da23d3b |