Skip to content

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=15price=49.99is_active=Trueitems= ["apple", "banana", "cherry"]

Conditional Statements

ifage>18:
print("Adult")
else:
print("Minor")

Loops

foriinrange(5):
print(i)
whileage<18:
age+=1

Functions

defgreet(name):
return"Hello, "+nameprint(greet("ProX"))

Classes & Objects

classPerson:
def__init__(self, name, age):
self.name=nameself.age=agedefinfo(self):
returnf"{self.name} is {self.age} years old."p=Person("Alice", 20)
print(p.info())

📚 Standard Library

Math Module

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

File Handling

withopen("file.txt", "w") asfile:
file.write("Hello, ProX!")

Working with JSON

importjsondata= {"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=lambdax: x*xprint(square(5)) # 25

List Comprehension

numbers= [xforxinrange(10) ifx%2==0]
print(numbers) # [0, 2, 4, 6, 8]

Exception Handling

try:
x=10/0exceptZeroDivisionError:
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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors