Skip to main content

Numerus

Numerus is an Esoteric Stack-based Programming Language (Esolang). It is a purely number-based language where all operations are represented by numerical codes.

Installation (CLI)

Install the command-line interpreter (nmc) via PyPI:

pip install nmlang

CLI Usage

Execute a Numerus source file (.nm) using the nmc command:

nmc your_program.nm

Library Usage (Integration)

You can also use the Numerus interpreter directly in your Python projects.

import numerus

# 1. Run a raw string
try:
    # Prints 'H' (ASCII 72)
    output = numerus.run_numerus_string("10 72 31 33")
    print(output)

except numerus.NumerusError as e:
    print(f"Code failed to run: {e}")


# 2. Run a file
try:
    output = numerus.run_numerus_file("hello_world.nm")
    print(output)

except FileNotFoundError:
    print("File not found!")
except numerus.NumerusError as e:
    print(f"Code failed to run: {e}")

Quick Syntax Guide

Code Command Stack Behavior (TOS = Top of Stack)
0-9 PUSH_VALUE Pushes the opcode value itself.
10 PUSH_NEXT Pushes the next number in the source code.
20 ADD (b, a) -> (b+a)
21 SUB (b, a) -> (b-a)
23 DUP (a) -> (a, a)
31 PRINT_CHAR Pops and prints value as ASCII character.
32 JUMP_ZERO If popped value is 0, jumps to address provided in source code.
33 END Halts execution.

Example Hello World Program (hello_world.nm)

10 72 31 10 101 31 10 108 31 10 108 31 10 111 31 10 44 31 10 32 31 10 87 31 10 111 31 10 114 31 10 108 31 10 100 31 10 33 31 33

License

This project is under the MIT License.

Metadata

Release files for nmlang 0.1.0

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

Source distribution (sdist)

Source distribution for nmlang 0.1.0
File Size Uploaded Provenance Actions
nmlang-0.1.0.tar.gz 5.8 kB With provenance Details for nmlang-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nmlang 0.1.0
File Interpreter ABI Platform Actions
nmlang-0.1.0-py3-none-any.whl Python 3 none any Details for nmlang-0.1.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / nmlang-0.1.0.tar.gz

Download URL nmlang-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d25cf6bf106bd011fded71e04c068283af81d4d2b54b4d2bb54f54236d5cb9c8
BLAKE2b-256 checksum
How to use checksums
84881ce574326097eb5fa5fbc44190324d6698dd8e6f99d69de861c8c1ac3edc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2025.

Transparency log

Release files / nmlang-0.1.0-py3-none-any.whl

Download URL nmlang-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a518dc6e007de885e9f73f9a43a9dd7b761558509c339787fd236195cd60a4fd
BLAKE2b-256 checksum
How to use checksums
888aa788d399621ec648354cc5e5de0487517aa346c79feb2513e91bba53b5d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2025.

Transparency log

Security for nmlang 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nmlang-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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