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.2b0.tar.gz (7.8 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.2b0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: obsidian_lang-0.0.2b0.tar.gz
  • Upload date:
  • Size: 7.8 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.2b0.tar.gz
Algorithm Hash digest
SHA256 1553019468df90f55c35545eb9c3932cb88cc2e886cec88058bd0ae402624754
MD5 c1b452db9b2016d40f99cb4d7809a88a
BLAKE2b-256 853a96d0dc3902f80400fe40fb460e4d126e68b9c0e231097df79dc8ebe18ced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for obsidian_lang-0.0.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 32d41d915ee048135330f8fb99c87888ad581aafb8bd9ab64e7c2c846a49c819
MD5 d49bb1eb73190baac40cc5135ef6b2c0
BLAKE2b-256 e44c56928feb79a5d737500eda60dc7db64d1d76782eac031928b63c26fb124f

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