Skip to main content

Silicon: A new language made with Python.

Reason this release was yanked:

Critical bugs

Project description

💎 Silicon.py (v1.0.2 BETA)

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.

Introducing silicord. The newest way to easily build Discord bots.

Silicord is currently in a huge Work In Progress, but we've released v1.0.0 BETA to recieve feedback.

🚀 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.
  • [x] v1.0.0: [BETA] Introduced silicord Discord bot builder with new Integrations intes library. Because silicord is W.I.P., expect a lot of bugs and crashes. We recommend you do not upgrade until a full, stable version of silicon.py v1.0.0 and silicord is released.
  • [x] v1.0.1 [BETA] fixed Bot not starting due to immediate shut down.
  • [x] v1.0.2 [BETA] fixed Bot not stopping due to not force exit.
  • [x] v1.1.0 [BETA] Improved :Send() and Reply() logic. Also added :GetAuthor:GetName() logic.
  • [x] v1.1.1 [BETA] Fixed silent errors.

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-1.1.1.tar.gz (8.4 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-1.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for silicon_py-1.1.1.tar.gz
Algorithm Hash digest
SHA256 42053bc4698c3d8df9cd5be0c15499f6de83dd9baff07fd157363c4bb8513b9e
MD5 db3c3a6b17cf64e70e0923c85cf4f93b
BLAKE2b-256 719b6844db79840f9ccfabfa8e5c85d82a53b4d3f0a7846d21058f0fd451dfe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: silicon_py-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff2bc704e9942da6403323a24a07e55df9e29e1e03beab6082e266ebe80c9a0
MD5 fd9ac7c069c355ff101dfcda43631e18
BLAKE2b-256 b5a921ca6d3c71cc1539a84a5260d606e9f0855121c978edc107fb4dd35c78f4

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