Skip to main content

Cyanox Programming Language

Cyanox is a simple and elegant programming language designed for education and community learning.

Features

  • Simple Syntax: Easy to learn for beginners
  • Voice Output: Built-in speak() function for audio feedback
  • Variable Support: Dynamic typing with optional type hints
  • Functions: Define and call custom functions
  • Conditionals: If/elif/else statements with intuitive syntax
  • Syntax Highlighting: Full VS Code integration with custom theme

Installation

Prerequisites

  • Python 3.6+
  • VS Code (for syntax highlighting)

Install from PyPI

pip install cyanox-lang

Install VS Code Extension

Search for "Cyanox Syntax" in VS Code Extensions marketplace, or install from:

Quick Start

1. Create a Cyanox file

Create a file named hello.cn:

write("Hello, Cyanox!")
speak("Hello from Cyan Code")

2. Run the file

cyanox hello.cn

Language Guide

Variables

let name = "Alice"
let int age = 25
let message = "I am learning Cyanox"

Output

write("Hello, World!")
write(42)

Audio Output

speak("This is spoken text")

Input

input("Enter your name: ")

Functions

def greet(name) = write("Hello, " + name)
greet("Alice")

Conditionals

if age > 18 then write("Adult")
elif age > 13 then write("Teenager")
else write("Child")

Operators

  • Arithmetic: +, -, *, /, //, %, **
  • Comparison: ==, !=, <, <=, >, >=
  • Logical: and, or, not

Comments

# This is a comment
write("Code continues")

Examples

Example 1: Simple Program

let greeting = "Welcome to Cyanox"
write(greeting)
speak(greeting)

Example 2: Variables and Math

let int a = 10
let int b = 20
let int sum = a + b
write("Sum: " + sum)

Example 3: Functions

def add(x, y) = x + y
let result = add(5, 3)
write("5 + 3 = " + result)

Example 4: Conditionals

let int score = 85
if score >= 90 then write("Grade: A")
elif score >= 80 then write("Grade: B")
elif score >= 70 then write("Grade: C")
else write("Grade: F")

VS Code Integration

After installing both the PyPI package and the VS Code extension:

  1. Open any .cn file in VS Code
  2. Click the "Run" button in the top right, or press Ctrl+Shift+R
  3. Output appears in the integrated terminal

Project Structure

cyanox-lang/
├── cyanox/
│   ├── __init__.py
│   ├── cli.py           # Command-line interface
│   └── interpretor.py   # Language interpreter
├── setup.py
└── README.md

Contributing

Contributions are welcome! Here are some ways you can help:

  • Report bugs and issues
  • Suggest new features
  • Improve documentation
  • Add examples
  • Contribute code improvements

Community

Join our community to share ideas, ask questions, and discuss Cyanox:

  • GitHub Issues: Report bugs and suggest features
  • Discussions: Share ideas and ask questions

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

Version 0.1.0 (Initial Release)

  • Basic language features: variables, functions, conditionals
  • Built-in functions: write(), input(), speak()
  • VS Code extension with syntax highlighting
  • PyPI package for CLI usage

Support

For issues, questions, or suggestions:

  1. Check existing GitHub issues
  2. Open a new issue with detailed information
  3. Include example code that demonstrates the problem

Happy coding with Cyanox! 🎉

Metadata

Release files for cyanox-lang 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyanox-lang 0.1.0
File Size Uploaded Provenance Actions
cyanox_lang-0.1.0.tar.gz 7.6 kB Without provenance Details for cyanox_lang-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cyanox-lang 0.1.0
File Interpreter ABI Platform Actions
cyanox_lang-0.1.0-py3-none-any.whl Python 3 none any Details for cyanox_lang-0.1.0-py3-none-any.whl

Total release size: 15.6 kB

Release files / cyanox_lang-0.1.0.tar.gz

Download URL cyanox_lang-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bf439ea7d6d4d12bc779f52c05d9011e4000219fe8ad9a24ad14f4422d941a59
BLAKE2b-256 checksum
How to use checksums
2b976c4be74909452c17a3cef4366d240f66cd41482ce83fb2cfb33b8db65d30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / cyanox_lang-0.1.0-py3-none-any.whl

Download URL cyanox_lang-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2ecf7a16665470a0da3cabcf88a15b195f9d9a0097676c5b70c9bb30eef1291
BLAKE2b-256 checksum
How to use checksums
d85af2097f923b4e3a15badc8d1c95ab65e53f949a6b2ab72ea91637061898bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Security for cyanox-lang 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page