Files

From OnixOS
Revision as of 09:49, 11 August 2024 by Tedaryum (talk | contribs) (Created page with " Olang files is to simple. Default file extension “.ola”. Let’s start by examining the programming language example. sample test.ola file: <code>def hello = fn(name){ return ("Hello, "+name+"! Welcome to O-lang!") } def result = hello("Oytun") output(result)</code> Run: <code>$ olang test.ola</code> Output: <code>Hello, Oytun! Welcome to Olang</code>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Olang files is to simple. Default file extension “.ola”. Let’s start by examining the programming language example.

sample test.ola file:

def hello = fn(name){
  return ("Hello, "+name+"! Welcome to O-lang!")
}
def result = hello("Oytun")
output(result)

Run:

$ olang test.ola

Output:

Hello, Oytun! Welcome to Olang