-
Notifications
You must be signed in to change notification settings - Fork 0
Setup and Installation
TumorScript offers multiple installation and deployment pathways, ranging from one-line package manager installations to standalone native binary compilation and Windows shell integration.
Install TumorScript globally using npm:
npm install -g tumorscriptOnce installed, the tumorscript command is accessible globally from any terminal:
tumorscript --version
tumorscript path/to/script.tmqInstall TumorScript globally or in a virtual environment via pip:
pip install tumorscriptVerify the installation:
tumorscript path/to/script.tmqNote on GitHub Actions Wiki Sync:
GitHub does not automatically create the.wiki.gitrepository when a repo is created. To enable automatic syncing via.github/workflows/wiki-sync.yml, you must visithttps://github.com/yamanist0/Tumor-Script/wikion GitHub once and click "Create the first page". After saving any initial page, GitHub provisions the.wiki.gitrepository and the action will succeed.
You can compile TumorScript directly into a self-contained executable with zero runtime dependencies. The compiled binary bundles the Lua 5.4 engine, the application icon, and the TumorScript standard library into a single binary.
- Rust (cargo 1.70+)
- Optional:
luacfor bytecode validation
Run the automated build script:
build.bat- Output location:
bin\tumorscript.exe(~547 KB) - Embeds:
icon.icodirectly into the Windows executable resource table.
Run the Unix build script:
chmod +x build.sh
./build.sh- Output location:
bin/tumorscript
You can also build directly using Cargo:
cargo build --releaseThe optimized binary will be created in target/release/.
TumorScript includes built-in Windows registry integration that sets .tmq files to automatically display the TumorScript application icon and run in a dedicated CMD terminal when double-clicked.
You can register file associations using either method:
-
Via Batch Script (One-Click): Double-click or run:
register_file_association.bat
-
Via Command Line:
tumorscript --register
-
Custom Icon: All
.tmqfiles on your desktop and file explorer immediately adopt the officialicon.ico. -
Double-Click Execution: Double-clicking any
.tmqfile launchescmd.exe /c ""tumorscript.exe" "%1" & pause". - Persistent Console: The terminal window remains open after execution finishes, allowing you to inspect mutation values, print outputs, and quarantine stats before closing.
-
No Admin Rights Required: Registration is scoped to
HKEY_CURRENT_USER\Software\Classes, meaning it functions without administrator elevation.
To unregister .tmq associations at any time:
- Run:
unregister_file_association.bat
- Or via command line:
tumorscript --unregister
If you are modifying the core interpreter files (src/lexer.lua, src/parser.lua, etc.) and do not wish to rebuild the binary each time, you can run directly using Lua 5.4+:
lua main.lua examples/hospital_core.tmqTo verify that your installation is working properly, run the included test suite:
# test minimal mutation
tumorscript examples/simple_test.tmq
# test full clinical dosage and quarantine simulation
tumorscript examples/hospital_core.tmq
# test quarantine 20% limit enforcement (expected to fail)
tumorscript examples/quarantine_limit_fail.tmqTumorScript Documentation — Biomorphic & Quantum Computing Paradigm. Handle with extreme biological precaution.
- Getting Started
- Language Core
- Architecture
- Cookbook