Skip to content

Tcode-Motion/techscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TechScript Dragon Logo

Typing SVG

Version Built in Rust Platform License Stars Author


⬇️ Download TechScript

Download Installer Β Β  All Releases Β Β  VS Code Extension


╔══════════════════════════════════════════════════════════════════════════╗
β•‘                                                                          β•‘
β•‘   Code should speak to humans first, machines second.                    β•‘
β•‘   No semicolons. No brackets. No confusing symbols.                      β•‘
β•‘   Just plain English β€” compiled to blazing-fast Rust bytecode.           β•‘
β•‘   β€” Tcode-Motion  πŸ‰                                                     β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ“– Table of Contents


πŸ€” What is TechScript?

TechScript is an open-source, human-first programming language designed to eliminate the cognitive overhead of traditional syntax. Instead of symbols, brackets, and cryptic keywords β€” you write in plain English.

Under the hood, a native compiler and bytecode Virtual Machine written entirely in Rust handle execution with zero-overhead memory safety and high throughput.

// Traditional JavaScript β€” confusing
const x = document.getElementById('name');
if (x !== null && x.value.length > 0) { console.log(`Hello ${x.value}`); }
// TechScript β€” reads like English
make name = ask "What is your name? "
say f"Hello, {name}!"

TechScript is:

  • 🟒 A programming language β€” write code that runs natively on your computer
  • 🌐 A web builder β€” build full websites with zero HTML, CSS, or JS
  • πŸ¦€ Powered by Native Rust β€” blazing-fast bytecode VM, no Python dependency
  • πŸ–₯️ Ships with a full IDE β€” TechScript Studio, built with egui + egui_dock
  • πŸ“¦ One installer β€” compiler, VM, IDE, PATH setup, .txs associations, all in one .exe

⚑ Why TechScript?

Problem with traditional languages TechScript's answer
Cryptic syntax creates a steep learning curve Plain-English keywords: make, say, when, each, build
Slow interpreted languages, slow feedback loops Native Rust compiler + bytecode VM = fast execution
No built-in IDE for newcomers Ships with TechScript Studio β€” a full docking IDE
Fragmented toolchain setup Single .exe installer β€” compiler, VM, IDE, PATH, all in one
No way to build websites easily use web β€” full websites with zero HTML, CSS, or JS
Missing stdlib for real-world tasks 150+ built-in functions: math.*, crypto.*, fs.*, os.*, json.*

πŸ†• What's New in v1.0.8

πŸ–₯️ TechScript Studio IDE

A full-featured, cyberpunk-aesthetic developer workspace built with egui + egui_dock:

  • Resizable docking layout β€” drag, split, and dock panels freely
  • Code Editor β€” high-performance with custom line-number gutter
  • Workspace Explorer β€” browse and load .txs scripts instantly
  • Multi-Channel Terminal β€” real-time stdout + diagnostic logs, color-coded by channel
  • AST Inspector β€” live parse tree view alongside your code
  • Bytecode Inspector β€” see exactly what VM instructions your code compiles to

Terminal channel colors:

Channel Color Purpose
πŸ“Ÿ Stdout Emerald #0DF28B Script output
βš™ Compiler Electric Blue #00A3FF Build diagnostics
🐞 VM Debugger Lavender #D8B4FE Runtime debug info

Inline controls: 🧹 Clear Logs Β· πŸ“‹ Copy Output Β· β–Ά Re-run Script


πŸͺŸ Windows Shell Integration

Double-clicking any .txs file in Windows Explorer now launches a native terminal host that runs the script and holds output open:

[Process completed. Press Enter to exit...]

No more disappearing terminal windows.


πŸ› οΈ Maintenance Manager

The unified TechScript_v1.0.8_x64.exe includes a full maintenance suite:

Mode What it does
βš™ Modify Customize PATH variables, shortcuts, .txs file associations
πŸ”§ Repair Restore missing binaries and broken registry keys
πŸ—‘ Uninstall Clean removal β€” PATH, registry, folders, all gone

πŸš€ Quick Start

1. Download & install:

TechScript_v1.0.8_x64.exe

Tick Add to PATH + Associate .txs Files during setup. Done.

2. Write your first script β€” create hello.txs:

say "Hello, World!"

make x = 10
make y = 20
make sum = x + y

say f"Result: {sum}"

3. Run it:

tech run hello.txs

Or just double-click hello.txs in Windows Explorer.


πŸ“¦ Installation

πŸͺŸ Windows (Recommended β€” No Terminal Needed!)

Option 1: Setup Wizard (Recommended)

  1. Go to the πŸ“₯ Releases page
  2. Download TechScript_v1.0.8_x64.exe
  3. Double-click it β€” installs everything automatically
  4. Open PowerShell (Win + X) and run:
tech version

You should see: TechScript v1.0.8 πŸŽ‰

What the installer does automatically:

  • βœ… Installs the native Rust compiler + bytecode VM
  • βœ… Installs TechScript Studio IDE
  • βœ… Makes the tech command available everywhere
  • βœ… Registers .txs files for double-click execution
  • βœ… Installs the VS Code extension for syntax highlighting

Option 2: pip (Cross-platform wrapper)

pip install techscript-lang

🐧 Linux (Ubuntu, Kali, Debian, Arch)

One-line installer:

curl -fsSL https://raw.githubusercontent.com/Tcode-Motion/techscript/main/scripts/install.sh | bash

APT (Debian/Ubuntu):

sudo apt update && sudo apt install techscript

🍎 macOS

# Homebrew
brew install tcode-motion/techscript/techscript

# OR one-line installer
curl -fsSL https://raw.githubusercontent.com/Tcode-Motion/techscript/main/scripts/install.sh | bash

πŸ“± Android (Termux)

pkg update && pkg upgrade -y
pkg install python -y
pip install techscript-lang
tech version

Update: pip install --upgrade techscript-lang

πŸ“– See docs/TERMUX.md for the full Android guide.


πŸ“– Language Guide

🟒 Level 1: Core Basics

πŸ“¦ Variables

# 'make' creates a variable
make name = "Alice"

# 'keep' creates a CONSTANT β€” can never be changed
keep PI = 3.14159

make age = 25
make items = [1, 2, 3, 4, 5]      # List
make info = { "city": "Delhi" }    # Dictionary

πŸ–¨οΈ Output

say "Hello!"
say f"My name is {name}!"         # f-string
say 10 + 5                         # Prints: 15

πŸ’¬ Input

make name = ask "What is your name? "
say f"Nice to meet you, {name}!"

🟑 Level 2: Logic & Control Flow

πŸ”€ Conditions

make age = 20

when age >= 18 {
    say "You are an adult!"
} or when age >= 13 {
    say "You are a teenager!"
} else {
    say "You are a child!"
}

πŸ” Loops

# Range loop
each i in 1..5 {
    say f"Count: {i}"
}

# List loop
each fruit in ["apple", "banana", "mango"] {
    say f"I like {fruit}!"
}

# While loop
make x = 1
repeat x <= 5 {
    say x
    x = x + 1
}

# stop (break) and skip (continue) β€” fixed in v1.0.3
each i in 1..10 {
    when i == 5 { stop }
    when i == 3 { skip }
    say i
}

πŸ” Operators β€” in and typeof

# 'in' β€” containment check
make fruits = ["apple", "banana"]
when "apple" in fruits { say "Found it!" }
when "ello" in "Hello" { say "Substring!" }

# 'typeof' β€” get the real type name
say typeof 42          # int
say typeof "Alice"     # str
say typeof [1, 2]      # list

🟠 Level 3: Functions

build greet(name, greeting = "Hello") {
    say f"{greeting}, {name}!"
}

greet("Alice")             # Hello, Alice!
greet("Bob", "Hi there")  # Hi there, Bob!

πŸ”΄ Level 4: Pro Features

πŸ—οΈ Classes

model Dog {
    build init(self, name, breed) {
        self.name = name
        self.breed = breed
    }
    build speak(self) {
        say f"{self.name} says: Woof!"
    }
}

make rex = Dog("Rex", "German Shepherd")
rex.speak()     # Rex says: Woof!

⚠️ Error Handling

attempt {
    make result = 10 / 0
} catch err {
    say f"Caught: {err.message}"
}

say "Program continues!"

πŸ’Ž Level 5: New v1.0.8 Syntax

// Variables (new style)
make x be 10
make name be "TechScript"

// Conditionals (new style)
when version equals 1 then
  say "Latest build!"
end

// Loops (new style)
each item in list then
  say item
end

// Functions (new style)
build greet with name then
  say "Hello, " + name
end

greet "World"

🌐 Building Websites with TechScript

Type use web at the top β€” build a complete running website in one .txs file:

use web

make page = WebPage("My Website")

page.style("body", {
    "background": "#0f0f11",
    "color": "#eeeeee",
    "text-align": "center",
    "padding": "60px"
})

page.script("""
    function sayHello() { alert('Hello from TechScript! πŸ‰'); }
""")

page.body([
    page.h1("Welcome! πŸ‰"),
    page.p("Built 100% in TechScript. No HTML. No CSS."),
    page.button("Click Me!", { "onclick": "sayHello()" })
])

page.run()

Run it:

tech run my_website.txs

Browser opens automatically. Press Ctrl+C to stop.


⚑ Standard Library β€” 150+ Built-in Functions

Everything baked into the binary. No internet imports needed.

πŸ”’ math.* β€” 38+ Functions

say math.sin(3.14159)
say math.factorial(10)         # 3628800
say math.gcd(48, 18)           # 6
say math.mean([1, 2, 3, 4, 5]) # 3.0
say math.sqrt(144)             # 12.0
say math.TAU                   # 6.283185...

πŸ” crypto.* β€” Real Cryptography

say crypto.sha256("hello")              # FIPS 180-4 SHA-256
say crypto.md5("hello")                 # MD5 hash
say crypto.base64_encode("TechScript")  # Base64
say crypto.base64_decode("VGVjaFNjcmlwdA==")

πŸ“„ json.* β€” JSON Encode / Decode

make data = { "name": "Alice", "age": 25 }
say json.encode(data)
say json.encode_pretty(data)
make parsed = json.decode('{"x": 1}')

πŸ“ fs.* β€” File System (20+ Functions)

fs.write("hello.txt", "Hello, World!")
say fs.read("hello.txt")
say fs.exists("hello.txt")      # true
fs.append("hello.txt", "\nMore!")
say fs.list_dir(".")

πŸ’» os.* β€” OS Integration

say os.name()                   # windows / linux / macos
say os.arch()                   # x86_64
say os.env_get("PATH")
os.system("echo Hello!")

🎲 random.* β€” Random & UUID

say random.random()              # 0.0-1.0
say random.randint(1, 100)
say random.uuid()
say random.choice(["a","b","c"])

πŸ“… date.* β€” Date & Time

say date.now()    # 2025-03-12 14:30:00
say date.year()
say date.unix()   # unix timestamp

πŸ› οΈ All CLI Commands

Command What it does Example
tech run file.txs Run a TechScript file tech run hello.txs
tech run file.txs --debug Run with debug info tech run calc.txs --debug
tech check file.txs Check for errors without running tech check myapp.txs
tech eval "code" ⚑ Run inline code instantly tech eval "say 42"
tech "[[[code]]]" ⚑ Shorthand inline execution tech "[[[say 'hi']]]"
tech repl Open interactive live mode tech repl
tech transpile file.txs Convert code to Python tech transpile hello.txs
tech fmt πŸ†• Auto-format your code tech fmt myapp.txs
tech lint πŸ†• Find errors before running tech lint myapp.txs
tech build πŸ†• Compile to bytecode (.txc) tech build myapp.txs
tech test πŸ†• Run built-in unit tests tech test
tech studio πŸ†• Launch TechScript Studio IDE tech studio
tech version Show installed version tech -V

πŸ“‹ All Example Programs

File What it does Run it
examples/hello.txs Hello World tech run examples/hello.txs
examples/fibonacci.txs Fibonacci numbers tech run examples/fibonacci.txs
examples/fizzbuzz.txs Classic FizzBuzz tech run examples/fizzbuzz.txs
examples/classes.txs OOP with Dogs & Cats tech run examples/classes.txs
examples/calculator.txs Simple calculator tech run examples/calculator.txs
examples/guessing_game.txs Guess the number tech run examples/guessing_game.txs
examples/07_performance_test.txs ⚑ 1M-iteration benchmark tech run examples/07_performance_test.txs
examples/web_app_simple.txs Dark-theme website tech run examples/web_app_simple.txs
examples/web_complete.txs Counter + API + form tech run examples/web_complete.txs
⚑ examples/08_math_module.txs Math: trig, roots, stats tech run examples/08_math_module.txs
⚑ examples/09_string_ops.txs String operations tech run examples/09_string_ops.txs
⚑ examples/10_json_module.txs JSON encode/decode tech run examples/10_json_module.txs
⚑ examples/11_crypto_module.txs SHA-256, Base64, MD5 tech run examples/11_crypto_module.txs
⚑ examples/12_date_module.txs Date/time/unix tech run examples/12_date_module.txs
⚑ examples/13_fs_module.txs File read/write/list tech run examples/13_fs_module.txs
⚑ examples/14_os_module.txs OS info, env vars tech run examples/14_os_module.txs
⚑ examples/15_random_module.txs Random, UUID, choice tech run examples/15_random_module.txs
⚑ examples/16_control_flow_fix.txs stop/skip/in/typeof tech run examples/16_control_flow_fix.txs
⚑ examples/17_inline_eval.txs Inline execution howto tech run examples/17_inline_eval.txs

🎨 VS Code / Cursor Editor Extension

Get syntax highlighting, code snippets, and the πŸ‰ dragon file icon for .txs files:

Method 1 β€” Command line:

code --install-extension vscode-extension/techscript-1.0.8.vsix

Method 2 β€” GUI:

  1. Open VS Code
  2. Press Ctrl+Shift+X
  3. Click Β·Β·Β· β†’ "Install from VSIX..."
  4. Choose vscode-extension/techscript-1.0.8.vsix

πŸ“‚ Repo Structure

techscript/
β”œβ”€β”€ assets/               # Logo and branding
β”œβ”€β”€ bin/                  # Compiled binaries (TechScript_TX.exe)
β”œβ”€β”€ docs/                 # Language reference and guides
β”‚   β”œβ”€β”€ QUICKSTART.md
β”‚   β”œβ”€β”€ REFERENCE.md
β”‚   β”œβ”€β”€ STDLIB_REFERENCE.md
β”‚   β”œβ”€β”€ WEB_MODULE.md
β”‚   └── TERMUX.md
β”œβ”€β”€ examples/             # 17+ ready-to-run .txs scripts
β”œβ”€β”€ scripts/              # install.sh for Linux/macOS
β”œβ”€β”€ vscode-extension/     # techscript-1.0.8.vsix
β”œβ”€β”€ TechScript_v1.0.8_x64.exe  # Windows installer
└── README.md

πŸ”„ Full Version History

Version Engine Key Feature Added
v1.0.0 Python Core scripting: say, make, loops, functions, classes
v1.0.1 Python use web β€” build websites; Windows Setup.exe; install.sh
v1.0.2 πŸ¦€ Rust VM Full Rust rewrite; 1M loops in 2.9s; zero deps; error handling
v1.0.3 πŸ¦€ Rust VM 150+ stdlib (math, crypto, fs, os, json, random, date); stop/skip fixed; in/typeof; tech eval
v1.0.5 πŸ¦€ Rust VM use three_d module; TechScript_TX.exe; fmt/lint/build/test toolchain
v1.0.8 πŸ¦€ Rust VM TechScript Studio IDE (egui+egui_dock); AST+Bytecode Inspector; .txs shell integration; Maintenance Manager

v1.0.8 Detailed Changelog

  • TechScript Studio β€” Full docking IDE with Code Editor, Workspace Explorer, Multi-Channel Terminal, AST Inspector, Bytecode Inspector
  • Windows Shell Integration β€” Double-click .txs files to run, terminal stays open
  • Maintenance Manager β€” Modify, Repair, Uninstall modes inside the installer
  • New syntax style β€” make x be 10, when x equals y then...end, build fn with arg then...end

v1.0.5 Changelog

  • use three_d β€” 3D scenes in 5 lines
  • TechScript_TX.exe standalone binary
  • Developer toolchain: tech fmt, tech lint, tech build, tech test
  • Glowing neon VS Code icons

v1.0.3 Changelog

  • Eliminated unsafe transmute β€” 100% type-safe bytecode
  • Fixed stop/skip (previously compiled to wrong instruction)
  • Fixed in operator and typeof
  • Added tech eval "code" inline execution
  • 150+ stdlib functions in 7 modules
  • Fixed Windows PATH truncation bug

v1.0.2 Changelog

  • Deleted Python runtime entirely β€” rewrote in Rust
  • Native bytecode VM: 1 million loops in 2.9 seconds
  • attempt {} catch err {} error handling
  • techscriptv1.0.2.exe native Windows binary

πŸš€ Roadmap

  • Linux + macOS native Rust builds
  • Standard library expansion (use http, use sql)
  • TechScript Package Registry
  • WASM compilation target
  • Language Server Protocol (LSP) support
  • Interactive REPL in Studio IDE
  • Android native build (no Python dependency)

πŸ“š Documentation

Document Description
Quick Start Guide Step-by-step install for all platforms
Language Cheat Sheet All keywords, functions, and syntax
Standard Library Reference All 150+ built-in functions by module
Web Module Guide Build websites with TechScript
Termux Guide Install and run on Android

🌍 Platform Support

Platform Status Install Method
Windows 10/11 βœ… Fully supported TechScript_v1.0.8_x64.exe or pip
macOS βœ… Fully supported install.sh or brew
Linux (Ubuntu, Kali, Arch) βœ… Fully supported install.sh or apt
Android (Termux) βœ… Works pip install techscript-lang

πŸ‘¨β€πŸ’» Author

Built by Tanmoy Majumder β€” independent developer, West Bengal, India.

πŸ”₯ Project πŸ“– Description
πŸ‰ TechScript Plain-English programming language β€” Native Rust VM + Studio IDE
🌌 NovOS Cinematic web OS β€” POSIX VFS, Nova AI, Aether Design
🧠 Project JARVIS Personal AI assistant built in Python
🎨 3D Visuals WebGL particle systems + Three.js experiences
πŸ€– AR Keyboard Hand-gesture virtual keyboard with OpenCV + MediaPipe

GitHub YouTube Releases

"Write like a human. Run like Rust."


πŸ“„ License

MIT β€” free to use, modify, and distribute. See LICENSE.


About

TechScript is a modern high-level programming language built with a Rust-powered runtime and compiler. It combines Python-like simplicity, Rust-like speed, and modern full-stack development tools for web, GUI, 3D, automation, and future AI workflows using clean readable syntax.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors