Metadata-Version: 2.4
Name: sym-lang
Version: 0.2.0
Summary: Sym - the polyglot host. Use any language's libraries from any language.
Author: Ric Kanjilal
License: MIT
Project-URL: Homepage, https://github.com/RicKanjilal/sym
Keywords: polyglot,interop,bridge,jvm,ffi
Requires-Python: >=3.9
Description-Content-Type: text/markdown

<div align="center">

[![battery](https://github.com/RicKanjilal/sym/actions/workflows/test.yml/badge.svg)](https://github.com/RicKanjilal/sym/actions/workflows/test.yml)

# Sym ⚡

### *The polyglot host. One file, ten ecosystems — none of them know the others exist.*

<br>

<p>
  <img src="https://img.shields.io/badge/Built_in-Class_10-22c55e?style=for-the-badge&labelColor=000" />
  <img src="https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white&labelColor=000" />
  <img src="https://img.shields.io/badge/C-A8B9CC?style=for-the-badge&logo=c&logoColor=black&labelColor=000" />
  <img src="https://img.shields.io/badge/lines_of_code-~4k-7c5cff?style=for-the-badge&labelColor=000" />
  <img src="https://img.shields.io/badge/license-MIT-93c5fd?style=for-the-badge&labelColor=000" />
</p>

<br>

</div>

## What this is

Sym is a programming language I designed and built. Files use the `.sym` extension. The compiler is written in Python, lives in this repo, and produces two outputs:

1. **Python code** for any function that touches the Python ecosystem (numpy, pandas, requests, anything `pip`-installable)
2. **C shared libraries** for any function that's *pure* (only does math, no Python deps)

The compiler analyzes every function for purity, then routes the pure ones through C codegen for native speed while keeping Python-dependent ones as Python. They talk via `ctypes`. The user just runs `sym run file.sym` and never thinks about it.

The language has three syntax modes (Normal, Compact, Symbol) that all parse to the same AST. Whichever style you find readable is the one you write. Performance and behavior are identical.

## THE MATRIX

Every language below can **consume** every library ecosystem below. 80/80 cells, tested:

```
              java     js  python    php   ruby      r   perl      c
  sym           ✅     ✅     ✅     ✅     ✅     ✅     ✅     ✅
