Origin scripts are plain text files with theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/boblio-max/origin/llms.txt
Use this file to discover all available pages before exploring further.
.or extension. If you can write a sentence, you can read Origin code — and if you know Python, you will feel at home immediately. This guide walks you through writing, running, and building your first Origin program from scratch.
Install Origin
Follow the Installation guide to set up Origin on your machine. Once installed, confirm everything is working by running:You should see
Origin Programming Language v1.7.5 printed to your terminal.Create your first script
Create a new file called Every variable must carry a type annotation (
hello.or and open it in any text editor. Add the following code:let name: str = ...). Constants use const and cannot be reassigned. Blocks are delimited with { }.Run the script
In your terminal, navigate to the folder containing You will see output like:Origin processes your file through the lexer → parser → code generator →
hello.or and run:exec() pipeline automatically. No compilation step is needed for normal execution.If you installed from source rather than the standalone installer, replace
origin hello.or with python runner.py hello.or. The standalone installer adds the origin command to your PATH; source installs require invoking runner.py directly.Build a standalone binary
To distribute your script as a self-contained executable, use the Origin transpiles
build command:hello.or to Python, then hands the result to PyInstaller. When the build finishes you will find hello.exe (Windows) or hello (Linux/macOS) in the same directory as your source file — ready to run on any machine without a Python installation.pyinstaller must be installed (pip install pyinstaller) for the build command to work. It is included in requirements.txt when running from source.Complete example script
The script below brings together every concept from the steps above into a single, runnable file you can copy directly into your editor.origin complete_example.or produces:
Next steps
Variables & Types
Deep-dive into
let, const, type annotations, lists, dicts, and tuples.Hardware Overview
Control GPIO pins and servos with native Origin hardware commands.
Parallel Execution
Spawn concurrent threads using the
parallel block for real-time control.