Skip to main content

Omi interpreted programming language

Project description

OmiLang Logo

Omi Programming Language

An interpreted programming language built with Python

Fork of GlowLang

Documentation · Discussions · VS Code Extension


Quick Start

Requires Python >= 3.11

git clone https://github.com/OmiLang/Omi.git
cd Omi
pip install -e .
omi

Run a file:

OmiShell >>> run example.omi

or

omi run example.omi

Legacy:

python shell.py run example.omi

Hello World

print("Hello, World!")
println("Hello, World!")
output("Hello,", "World!")

Example

func<int> factorial(n<int>):
  if n <= 1: return 1
  return n * factorial(n - 1)
end

// Factorial from 1 to 6
for i = 1 to 6:
  println(factorial(i))
end
@import "omi:system" as sys
@set sys.username as user

func<void> greet(name<string>):
  println("Hello, " + name + "!")
  return
end

var<string> name = user

greet(name)

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

omilang-1.5.0.tar.gz (85.8 kB view details)

Uploaded Source

Built Distribution

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

omilang-1.5.0-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file omilang-1.5.0.tar.gz.

File metadata

  • Download URL: omilang-1.5.0.tar.gz
  • Upload date:
  • Size: 85.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for omilang-1.5.0.tar.gz
Algorithm Hash digest
SHA256 91f0f8269504114d029eb4649edb999ddc044d2125cb61188964910db0b2c2c7
MD5 129798af2f1c68d1d3049cf2874de38f
BLAKE2b-256 a37eb42a5a070f39ff9586ae76da32c7a6e698d936a4cde7beffdfbc859269ca

See more details on using hashes here.

File details

Details for the file omilang-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: omilang-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 121.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for omilang-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 514a91b7714caa9c41342ccd63961eea83f231a4b272a0a8f5959b1c067012ec
MD5 0dc0fda96c5d79294c8118699d297780
BLAKE2b-256 31d6f2ae281e4903c5ec64cc14ae19eef180b68ca3aec75c366870cdaf45f1bf

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