Files

From OnixOS

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

File Types

  • Olang Singe File (.ola) - olang/single-file
  • Olang Module File (.ols) - olang/scope-file
  • Olang Module File (.olm) - olang/module-file
  • Olang Process File (.olproc) - olang/process-file
  • Olang Program File (.olprog) - olang/program-file
  • Olang Library File (.olibrary) - olang/library-file
  • Olang Compresed File (.olc) - olang/compresed-file
  • Olang Packaging File (olpfile.json) - olang/olpfile
  • Olang Process File (Opsfile) - olang/opsfile