Prizm

PROJECT SUMMARY - Prizm Programming Language

Created by: Seigh-sword
Repository: https://github.com/Seigh-sword/Prizm
License: Prizm License (Free Forever)

Overview

Prizm is a modern, beginner-friendly compiled programming language designed to be:

Key Features

1. Language Features

2. Built-in Headers (10 Total)

Header Purpose Key Functions
file File operations create, delete, move, read, modify
math Mathematics add, subtract, multiply, divide, random, power
control Flow control if, else, loop, repeat, break
var Variables declare, assign, access
function Functions define, call, return
http Web requests get, post, put, delete, header
ui GUI windows window, button, text, input, panel, event
root System access exec, system, memory, process, interrupt
data JSON/data stringify, parse, validate, merge, encode
time Date & time now, sleep, format, parse, timer

3. Built-in Functions (Always Available)

Architecture

Compilation Model

.pzm source → Lexer → Parser → Code Generator → Binary Executable
   ↓
No dependencies needed to run!

Header System

Platform Support

Project Structure

/workspaces/needs-a-name/
├── README.md              # Main documentation
├── QUICKSTART.md          # Quick start guide
├── CONTRIBUTING.md        # Contribution guidelines
├── DEPLOYMENT.md          # Deployment & distribution
├── LICENSE                # MIT License
├── version.json           # Version tracking
├── install.sh             # Linux/macOS installer
├── install.bat            # Windows installer
├── init.sh                # Linux/macOS project initializer
├── init.bat               # Windows project initializer
├── build.sh               # Linux/macOS build script
├── build.bat              # Windows build script
├── source/
│   └── example.pzm        # Example program (multi-header)
├── dist/                  # Pre-compiled binaries
│   ├── linux-x64/
│   │   └── prizm
│   ├── macos-x64/
│   │   └── prizm
│   ├── macos-arm64/
│   │   └── prizm
│   └── windows-x64/
│       └── prizm.exe
├── bin/                   # Build output
│   ├── release/           # Release binaries
│   ├── debug/             # Debug binaries
│   └── dll/               # DLL libraries
├── assets/
│   └── logo.svg           # Prizm logo
└── compiler/
    ├── Cargo.toml         # Rust build config
    ├── src/
    │   ├── main.rs        # CLI executable
    │   ├── lib.rs         # DLL library
    │   ├── cli.rs         # Command utilities
    │   ├── attributes.rs  # Headers & ID system
    │   ├── lexer.rs       # Tokenizer
    │   ├── parser.rs      # Parser (WIP)
    │   └── stdlib.rs      # Standard library
    └── build.rs           # Build script

Installation

Linux & macOS:

curl -fsSL https://raw.githubusercontent.com/Seigh-sword/Prizm/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/Seigh-sword/Prizm/main/install.bat | iex

Manual Install

  1. Download binary from /dist/[your-platform]/
  2. Add to PATH
  3. Run prizm --version to verify

Getting Started

Create First Project

./init.sh myapp
cd myapp
prizm run

Hello World

output("Hello, Prizm World!"),

Basic Example

var name: string = "Developer",
var age: int = 25,

output("Name: " + name),
output("Age: " + age),

var result: int = math.add(10, 5),
output("10 + 5 = " + result),

CLI Commands

prizm run [file.pzm]          # Run a program
prizm pretty [file.pzm]       # Format code
prizm lint [file.pzm]         # Check for errors
prizm --version               # Show version
prizm --help                  # Show help

Development Status

Completed

In Progress

Planned

Key Statistics

Design Decisions

Why Comma Terminator?

Why Headers System?

Why Pre-Compiled Binaries?

Why Multiple Platforms from Day 1?

Contributing

Prizm is open source and welcomes contributions!

See CONTRIBUTING.md for details.

Resources

License

MIT License - See LICENSE for details

Vision

Prizm aims to be:

  1. Accessible: Easy to learn for beginners
  2. Modern: Using contemporary language features
  3. Practical: Solving real-world problems
  4. Fast: Compiled, native performance
  5. Cross-Platform: Write once, run everywhere
  6. Zero Friction: Download binary and use

Community


Prizm: Write it once, deploy it everywhere.

Latest Update: January 2024 Current Version: 0.1.0 (Early Development)