Skip to content

ProgrammerKR/ProX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

ProX Programming Language

ProX is a high-level, Python-like programming language designed for modern development. It features simplicity, power, and flexibility, making it ideal for both beginners and professionals.


🌟 Features

βœ… Python-like Syntax – Easy to read and write.
βœ… 32 Keywords – Designed for efficiency.
βœ… 50 Built-in Functions – Predefined functions for various operations.
βœ… 12 Data Types – Strong and dynamic typing support.
βœ… 32 Operators – Powerful mathematical and logical operations.
βœ… 5 Special Constants – Unique constants for enhanced functionality.
βœ… PRM (ProX Repository Manager) – Manage ProX packages efficiently.
βœ… Cross-Platform – Works on Windows, macOS, and Linux.
βœ… Custom Standard Library – Extensive modules for development.
βœ… Fast Execution – Optimized for performance.
βœ… Open Source – Community-driven and actively developed.


πŸ“₯ Installation

Using PRM (ProX Repository Manager)

Install ProX with a single command:

prm install prox

Manual Installation

Clone the repository and install manually:

git clone https://github.com/yourusername/prox.git
cd prox
python setup.py install

Running ProX

Verify installation by running:

prox --version

πŸš€ Getting Started

Writing Your First ProX Script

Create a file named hello.prox:

print("Hello, ProX!")

Run the script:

prox hello.prox

Variables & Data Types

name = "ProX"
age = 15
price = 49.99
is_active = True
items = ["apple", "banana", "cherry"]

Conditional Statements

if age > 18:
    print("Adult")
else:
    print("Minor")

Loops

for i in range(5):
    print(i)

while age < 18:
    age += 1

Functions

def greet(name):
    return "Hello, " + name

print(greet("ProX"))

Classes & Objects

class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def info(self):
        return f"{self.name} is {self.age} years old."

p = Person("Alice", 20)
print(p.info())

πŸ“š Standard Library

Math Module

import math

print(math.sqrt(16))  # 4.0
print(math.pow(2, 3))  # 8.0

File Handling

with open("file.txt", "w") as file:
    file.write("Hello, ProX!")

Working with JSON

import json

data = {"name": "ProX", "version": 1.0}
json_str = json.dumps(data)
print(json_str)

πŸ”Œ ProX Package Manager (PRM)

PRM allows you to install and manage packages easily.

Installing a Package

prm install package_name

Listing Installed Packages

prm list

Removing a Package

prm remove package_name

πŸ›  Advanced Features

Lambda Functions

square = lambda x: x * x
print(square(5))  # 25

List Comprehension

numbers = [x for x in range(10) if x % 2 == 0]
print(numbers)  # [0, 2, 4, 6, 8]

Exception Handling

try:
    x = 10 / 0
except ZeroDivisionError:
    print("Cannot divide by zero!")

πŸ–₯️ Running ProX Scripts

Running a File

prox myscript.prox

Running in Interactive Mode

prox
>>> print("Hello, ProX!")

πŸ—οΈ Contributing

We welcome contributions from the community!

How to Contribute

  1. Fork the repository
  2. Create a new branch (feature-name)
  3. Make your changes
  4. Commit and push
  5. Open a pull request

Reporting Issues

If you find a bug, please open an issue on GitHub.


πŸ“œ License

This project is licensed under the MIT License.


πŸ“¬ Contact

For any questions, reach out at:
πŸ“§ Email: programmerkr.123@gmail.com
🌐 Website: prox.com
πŸ“Œ GitHub: github.com/ProgrammerKR


Happy Coding with ProX! πŸŽ‰

About

ProX is a high-level, Python-like programming language designed for simplicity and efficiency. It features 32 keywords, 50 built-in functions, 12 data types, 32 operators, and 5 special constants. With its own package manager, PRM (ProX Repository Manager), ProX enables fast and scalable development for modern applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Β 
Β 
Β 

Contributors