Search docs... Ctrl+K
0
Code Examples
0
Importable Languages
0
File Extension
0
Script Snippets
Quick Start
Get running in three lines
pidon
import python type("Hello from Pidon!") stop
IDE Launch Countdown
Full native IDE and runtime
0
Days
0
Hours
0
Mins
0
Secs

Introduction

What is Pidon and how does it work

Pidon (aka PIDON) is an easier coding language that combines the best aspects of Python and TypeScript indefinitely. With enough creativity, it can also effectively replace HTML and CSS for templating workflows.

Throughout this documentation, whenever you see brackets (e.g., [var name here]), replace them — and the text inside — with the actual instructions or names specified in the description.

Mental Model Think of Pidon as the conductor of an orchestra. Python, Lua, Rust, and Go are the musicians. Pidon itself doesn't play instruments — it tells each addon when and what to play, in the exact order you wrote it.

The full native IDE and desktop runtime is slated for release in September 2026. The countdown timer on the dashboard tracks the remaining time.

Setup & File Endings

File requirements and execution environment

All Pidon source files must use the lowercase .pidon extension.

AspectDetail
Extension.pidon (lowercase only)
ExecutionLocal CLI tool with system-level permissions
Reading OrderTop-to-bottom, single-pass
Required HeaderNone — but import python is conventional
Terminatorstop is optional but recommended
File Extension Rule All Pidon files must end with the lowercase .pidon extension. Not .PIDON — case matters. The engine will reject uppercase extensions.

Database & Basics

Foundational commands for output, variables, files, and databases

  • type("Hello World") — Functions exactly like Python's print("Hello World").
  • [var name here] = [content] — Creates a variable (similar to Python). Replace the bracketed placeholders with your actual variable name and content.
  • let db [var name here] = python — Creates a variable for a database (replace db with ls for local storage). Replace let with make to create an actual file.
  • let db [file name] = f"[file code here]" — Creates a database file. You must keep the f and the quotation marks; this is how the engine knows it's dealing with file content.
  • Define — Functions exactly like Python's def for creating functions.
  • stop — Halts the script execution (optional, but recommended for larger scripts).
  • Make [file name]; Content: f"[content here]" — Creates a physical file with the specified content. Keep the f and quotation marks.
  • Get source = [website here] — Scrapes the target website, grabbing as much data as possible, and downloads it as a local file.
pidon
import python {greeting} = "Hello, Pidon!" type("{greeting}") stop

Advanced Scripts

Commands for interactivity, file operations, and remote data fetching

  • {[var name here]} — Every variable must be wrapped in {} after declaration (e.g., {apples} or {candy sold}).
  • Input({user}, prompt) — Opens a prompt dialog. The user's input is stored in the variable specified in the first argument.
  • Fetch response = input(text) — Captures input and stores it in a variable for later use.
  • Warn({user}, msg) — Triggers a JavaScript-style alert dialog with the specified message.
  • From [path]; & [file]; && Run — Executes an external .pidon file from the specified path. The && Run suffix is required.
  • Del([folder]; [file]) && Run — Deletes a specified file or folder from the filesystem.
  • Search("name") && del — Finds files or variables matching the name and deletes them.
  • Request("{response}") to [folder]; [file] && run — Sends a request to a specific folder/file and fetches the response.

More Pidon Scripts

Loops, imports, and special variables

  • while {website} == none — Functions exactly like a Python while loop.
  • for x = true; — If the variable is true, it executes the subsequent block of code.
  • repeat [number] of x — Repeats a block of code a specific number of times. The of x is optional.
  • {rantimes} = /loop/ — Variable that automatically counts loop iterations. Must keep the exact /loop/ syntax.
  • import python — Imports all of Python's math, logic, and capabilities.
  • import lua — Imports all of Lua's gaming logic and capabilities.
  • import golang — Imports all of Google's Go capabilities.
  • import rust — Imports all of Rust's capabilities.
  • {[var]} = /script.ran/ — Stores the identifier of the last script that was executed.
  • del db {[db name]} — Deletes the specified database.

Core Language Notes

Understanding the anchor system and execution model

The Anchor System

Pidon acts as the main orchestrator (the "anchor"). When you use import python or import rust, those languages become runtime "addons." The Pidon engine reads top-to-bottom and dynamically hands off code blocks to the correct addon engine in the exact order you wrote them.

Syntax Pre-processing

Because Pidon is the anchor, its unique syntax (like {variables} and f"[files]") is natively understood. The engine handles this formatting before passing logic to addon engines — meaning Python and Rust never get confused by Pidon-specific brackets.

Mixing Languages

Standard logic can be written in Python, Lua, Rust, or Go, and you can mix them all in a single file. However, you must use the import keyword to activate a specific addon — you cannot write raw Python code without importing it first.

Import Before Use Writing Python code without import python at the top of your file will cause the engine to not recognize the Python addon. Always declare your imports first.

The File System

Commands like Make and let db interact with actual physical files and folders on your local hard drive. It writes real data to your machine based on the file paths you provide.

Web Fetching & Source Grabbing

Get source performs a raw scrape of the URL. It downloads the raw HTML/CSS/JS and saves it directly into a physical local file for you to use or parse.

Error Handling

Silent auto-correct and debugging commands

By default, error handling operates silently. Unless 5 errors accumulate, the engine ignores the error, outputs the recommended fix in gray text, and attempts to auto-correct typos to the most likely intended command.

Error Handling Commands

  • Try — Attempts to execute a command safely (e.g., Try apple = true).
  • eilf — Functions as Pidon's equivalent to Python's elif (else-if).
  • fetch {error} = type("/last_error/") — Fetches the details of the last error and stores it in a variable.
  • {debug} = /fetch --10 commands/ — Fetches the last 10 commands executed. Replace 10 with any number.
  • {verbose} = /verbose output/ — Enables verbose mode showing everything the engine does behind the scenes.
  • {stop on error} = /error=stop/ — Forces the script to halt immediately on any error, overriding silent auto-correct.

Math Operations

Arithmetic operators and precedence

Math functions just like Python. You can combine and mix operators in complex equations.

OperatorFunctionExample
+Addition{x} + {y}
-Subtraction{x} - {y}
x or *Multiplication{x} x {y}
/Division{x} / {y}
Spacing Matters for Readability You can write math equations spaced or unspaced, but spacing them is highly recommended for the computer's processing and for simpler readability: 1 + 2 + 3 / 2 + 1 * 5

Interactive REPL

Test Pidon code directly in your browser

Pidon Runtime v2.0
// Awaiting execution...

Code Examples

All 20 real Pidon examples from the official documentation

Script Library

Curated collection of Pidon snippets. Click any to load into the REPL.

Export Documentation

Save the complete Pidon documentation locally for offline reference

Plain Text
Export as .txt file
Markdown
Export as .md file
Print / PDF
Browser print dialog
Copied!