Skip to main content

Origin Programming Language · v1.7.31

Origin is my programming language — English-like syntax, strict typing, hardware-first (GPIO/servo primitives for Raspberry Pi), and the full Python ecosystem underneath. this repo is the stable release: pip install origin-or and you're writing .or files. dev chaos happens in origin-dev; this is the polished snapshot.

docs live at docs-origin.onrender.com.

what's new in v1.7.31

  • JS-shaped default dialect — the bundled origin.toml now maps JavaScript-style lines (console.log(x);, x++;, a === b;, Math.floor(x);, arr.push(x);, // comments, trailing ;) to real Origin. keyword-led lines (let, if, while, ...) still parse natively, semicolon-free.
  • dialect preset pack — tomls/ ships js/py/ts/c/cpp/rs/java_or.toml shorthands plus origin_dialect.md, the authoring spec (rules, keyword guard, debugging recipe).

what's new in v1.7.30

  • dialect support (TOML) — mix foreign-language lines straight into .or programs. each line is looked up in the bundled origin.toml ("<origin source>" _ "<dialect line>") and compiled to real Origin before execution, including $name template captures (e.g. "let $n:int = $v" _ "$n:$v" turns x:5 into let x:int = 5). expansion is inline, sharing constants and control flow.
  • dialect-aware runner — origin/runner.py preloads origin.toml, precompiles exact mappings to origin_bytecode.toml, resolves templates at parse time. interpreter mode (origin i) skips dialect lines; use default VM mode.
  • open ... as statement — open "data.txt", "r" as f binds a file handle (new OPEN_FILE opcode 0x53 on the VM, name = open(path, mode) in the interpreter). path/mode accept plain strings, f-strings, and variables.
  • dialect guard — templated mappings (e.g. "$n:$v") no longer hijack lines starting with a core keyword, so open f"C:/..." paths and typed declarations compile as real statements.
  • fresh origin.exe + OriginInstallerV1.7.30.zip, carried-over modular layout (lexer/parser/interpreter/classes subpackages) with the bytecode VM as default backend.

quickstart

git clone https://github.com/boblio-max/origin.git
pip install -r requirements.txt
let x: int = 10
let name: str = "Origin"
let flag: bool = true
const e: float = 2.71828

let a, b = 1, 2
print x + a
python -m origin main.or    # bytecode VM (default)
python -m origin i main.or  # AST interpreter

how it actually works

origin/ package pipeline: lexer.py tokenizes → parser.py builds the AST → either bc/to_byte.py compiles to bytecode for bc/svm.py (the stack VM, default) or the interpreter generates Python and execs it. dialect.py + origin.toml handle the foreign-line expansion before parsing. errors.py gives friendly diagnostics with suggestions instead of raw tracebacks.

features

English-like syntax · strict (recommended) type annotations with inference · classes/OOP · try/except/else · parallel thread blocks · module system (import math as m, from lib import x) · .or library imports (calc.or, graph.or) · hardware I/O (GPIO, ServoKit/PCA9685 with 0–180° servo clamping) · binary builder (PyInstaller .exe) · binary + install.sh/secure_install.ps1 installers.

stack

Python 3.10+, zero runtime deps (extras: Pi/servo libs, pyinstaller for builds). see requirements.txt, setup.py, helloworld.or.

Metadata

Release files for origin-or 1.7.32

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

Source distribution (sdist)

Source distribution for origin-or 1.7.32
File Size Uploaded Provenance Actions
origin_or-1.7.32.tar.gz 68.5 kB Without provenance Details for origin_or-1.7.32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for origin-or 1.7.32
File Interpreter ABI Platform Actions
origin_or-1.7.32-py3-none-any.whl Python 3 none any Details for origin_or-1.7.32-py3-none-any.whl

Total release size: 149.1 kB

Release files / origin_or-1.7.32.tar.gz

Download URL origin_or-1.7.32.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31e2cc3da481255ecb3be64aa6c24c76021ca8d620db0ace0d73d3a4184e05bb
BLAKE2b-256 checksum
How to use checksums
22f6021c5caef60ea1f2d38d58539b09ea1b77934080314135b51969f2637de0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / origin_or-1.7.32-py3-none-any.whl

Download URL origin_or-1.7.32-py3-none-any.whl
Size 80.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
482b3a9339da594ad752cfa2ebd6c58cfe5dcad7c5c9acc02ca347e9e95ded0b
BLAKE2b-256 checksum
How to use checksums
b9fa966e566211cae0c0cbbdbf2ab32220003a7fa91656fc3963c3052297ed76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for origin-or 1.7.32

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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