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

Install from PyPI

pip install omilang
omi

Install from source

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: omilang-1.5.0.1.tar.gz
  • Upload date:
  • Size: 85.9 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.1.tar.gz
Algorithm Hash digest
SHA256 ae8276e9a8aee788d5e13bb8039cf1c72289a41d59953cfcb1463317d5d9547c
MD5 3f4a643bbe6e518ff20be9ab25b45c3b
BLAKE2b-256 0ca94ac66d83e86a6e1a7bd4c29ca3912e262588f1a44e20e87a97f40ee0b1ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omilang-1.5.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab1079bcb83efb69384850ee93a09e182627c6741f70b062c959ccf36895b79
MD5 272e2acd5ea53110bb33eab6ea223b5f
BLAKE2b-256 37aa2dc2273683144e83563d45268912ca1c30fbabc1246b2dc3f3c89c24da0a

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