Skip to main content

Obsidian is a compiled programming language that combines memory safety, zero-cost abstractions, and minimalist syntax. Built for developers who want the speed of Rust without the boilerplate.

Project description

Obsidian Language v0.0.1

Obsidian is a compiled programming language that combines memory safety, zero-cost abstractions, and minimalist syntax. Built for developers who want the speed of Rust without the boilerplate.

This is a toy implementation (v0.0.1) written in Python. It features a lexer, parser, AST, and a transpiler to Python (which simulates "compilation" by generating and executing equivalent Python code). Published on PyPI as obsidian-lang.

Features (v0.0.1)

  • Minimalist syntax inspired by Rust
  • Variables with let
  • Functions with fn
  • Basic expressions + comparison operators (< > <= >= == !=)
  • Control flow with if / else
  • Function calls (including built-in println)

Installation

pip install obsidian-lang

Usage

# After pip install obsidian-lang
obsidian examples/hello.obs --show-code

# Or from source (development)
PYTHONPATH=. python -m obsidian.main examples/hello.obs --show-code

Example (hello.obs)

fn main() {
    let x = 5;
    let y = x + 3;
    println(y);
    println("Hello from Obsidian!");
}

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

obsidian_lang-0.0.2a0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

obsidian_lang-0.0.2a0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file obsidian_lang-0.0.2a0.tar.gz.

File metadata

  • Download URL: obsidian_lang-0.0.2a0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for obsidian_lang-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 5397fe4a4782a5cb5042adb40786b96a592f0c9c006e109cdd590b973f9cee6e
MD5 68ceae0b0989b05a7df7df03468dfcd0
BLAKE2b-256 af5564c6a3389cdd77cd46d90e8efaca76537b2214bd77a6f143b219fd5cb3f6

See more details on using hashes here.

File details

Details for the file obsidian_lang-0.0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for obsidian_lang-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fb79e43be5745f5d4b6eef069d274612ae6171ab8c371397d0b393508cb0631
MD5 9200448259bf7fe2a6e9903820fa0bac
BLAKE2b-256 b67d16f383b9d425c87443a38b9937fa57781a481dab9d2e3d854518d728b681

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