Skip to main content

Silicon: A new language made with Python.

Project description

💎 Silicon.py (v0.2.7)

Silicon is a custom-built, high-logic programming language designed for structured data manipulation and iterative logic. Built with the "Industrial Library" philosophy, Silicon separates data into distinct namespaces (vars, arrs, funcs) to ensure maximum memory clarity and zero variable shadowing.

🚀 Installation

Silicon is available on PyPI. Install it globally or in your virtual environment:

pip install silicon.py

🛠 Usage

Silicon uses the .sil extension. Once installed, you can execute your scripts using the sili command:

sili your\_script.sil

🏗 Language Syntax

Silicon introduces a unique Action-Library syntax. To modify data, you must call the action through the appropriate library.

1. Variables and Arrays

Definitions and assignments are distinct steps. This ensures intentional memory allocation.

~~ Define your data ~~

define(type:Var \= playerName)  
define(type:Arr \= inventory)

~~ Set values using the Library:Action syntax ~~

vars.playerName:Set("Architect")  
arrs.inventory:Set("Hammer", "Shield", "Silicon Core")

2. The cond() Logic (v0.2.2+)

Silicon v0.2.2 replaced the traditional if with the unified cond() system. It supports single-pass conditions (if) and loops (during).

Supported Logic Operators:

  • alt; (OR)
  • also; (AND)
  • not; (NOT)
cond(during vars.health \> 0):  
    log(console, "Character is alive...")  
      
    cond(if vars.energy \< 10 also; vars.hasPotion \== true):  
        log(console, "Energy low\! Drinking potion...")  
    :end  
:end

📑 Roadmap

  • [x] v0.2.2: Unified cond() logic and semantic operators (alt;, also;).
  • [x] v0.2.3: Official rebranding to Silicon, .sil extension, and sili CLI.
  • [x] v0.2.4: Added README.md for better guides of use.
  • [x] v0.2.5: Updated README.md for better guides of use.
  • [x] v0.2.6: Updated console logging to [SILICON].
  • [x] v0.2.7: Allowed usage of sili --version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silicon_py-0.2.7.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silicon_py-0.2.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file silicon_py-0.2.7.tar.gz.

File metadata

  • Download URL: silicon_py-0.2.7.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for silicon_py-0.2.7.tar.gz
Algorithm Hash digest
SHA256 61f9f8c9509ba4ced7b668deb5f44fc01f23f2a5eba59a63dba4a0b2efb988a2
MD5 63bddb91d94ab7dd473e625d160f3641
BLAKE2b-256 297abebd187bd47da5b426a59708152e781203c33b7ff55da647962314fcc493

See more details on using hashes here.

File details

Details for the file silicon_py-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: silicon_py-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for silicon_py-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a733301ca3f19edf728193a11d100d546070a62ee81c70257ae3f40a39f0f143
MD5 21ee24af3129bd32e85a68539f78c339
BLAKE2b-256 2e81396372c195fcacd855114040678a6ef615d8fe7c3167d813e1b11347075f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page