Metadata-Version: 2.4
Name: po-lang-engine
Version: 2.1.1
Summary: Po-Lang: A robust, multi-purpose scripting language engine with compiler, VM, and standard library
Author: Po-Lang Team
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Interpreters
Classifier: Topic :: Software Development :: Compilers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Po-Lang Engine v2.0

A robust, multi-purpose scripting language with a bytecode compiler and stack-based VM.

## Features

- **Conditionals**: `if / else if / else`
- **Loops**: `loop` / `for` / `while` with `break` / `continue`
- **Functions**: `fn` / `def` with closures and recursion
- **Classes**: `class` with inheritance
- **Error Handling**: `try / catch / finally` + `throw`
- **Modules**: `json`, `math`, `net`, `io`, `sys`, `os`, `time`, `random`, `ffi`

## Install

```bash
pip install po-lang-engine
```

## Quick Start

```po
# hello.po
fn greet(name) {
  return "Hello, " + name + "!"
}
show greet("World")

# try-catch
try {
  keep x = 1 / 0
} catch(err) {
  show "Caught: " + err
}

# math module
use math
show math.random(1, 100)
show math.sqrt(144)

# json module
use json
keep data = json.parse("{\"key\": \"value\"}")
show data["key"]
```

## Standard Library

| Module | Key Functions |
|--------|--------------|
| `math` | `sqrt`, `pow`, `random(min,max)`, `abs`, `ceil`, `floor`, `clamp` |
| `json` | `parse`, `stringify`, `load`, `dump`, `valid` |
| `net`  | `get`, `post`, `request(url,method,data)`, `listen(port)` |
| `io`   | File read/write operations |
| `sys`  | System info and args |
| `os`   | File system operations |
| `time` | `now`, `sleep`, `format` |
| `random` | `int`, `float`, `choice`, `shuffle` |
