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

Install from source

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

Launch interactive console:

omi
OmiShell >>>

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: omilang-1.5.1.tar.gz
  • Upload date:
  • Size: 90.1 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.1.tar.gz
Algorithm Hash digest
SHA256 ca1d8c1223e8060e62a49dcae644631fd8b4540fa16750be59ef228ce7402cb2
MD5 d6bee2e3005138f35f4cc0820f5451d7
BLAKE2b-256 36cb48723667c5754d990427089bcb4f16244bb9ba1d4bd5c02d0cfd38681fc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omilang-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 126.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f130c6e565dd003bb22b9b5479d761e868a06721dc9e8513a566406bd6b461d1
MD5 6d4447ed081301e77ae1aeb11b2104f4
BLAKE2b-256 2770dff706dceb385168888c27da60445ba223e02eb01ea9bba73f470caa51b4

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