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

Uploaded Python 3

File details

Details for the file obsidian_lang-0.0.1.tar.gz.

File metadata

  • Download URL: obsidian_lang-0.0.1.tar.gz
  • Upload date:
  • Size: 7.6 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.1.tar.gz
Algorithm Hash digest
SHA256 d64cb397010cc8c6dfea8002a1d52201e04e7872a9e1656d83c78443ca1b4bd5
MD5 209646b6d5e467eb03398b00c35c7a18
BLAKE2b-256 900c813670dea869291d10c17fc8dfc8f62acc278b880f076af347261ca5ae39

See more details on using hashes here.

File details

Details for the file obsidian_lang-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: obsidian_lang-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for obsidian_lang-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b20810c42f324d73ea71be77e0b435d338bdef563504a975de08d81bce7143cd
MD5 644bfab00e2e033984fa5b1def9a1c16
BLAKE2b-256 2b2846b4754c7937d9fdbd8d6b1c414d4d6970fb6fba4b52eca282a41131f710

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