Getting Started

Have a Question?
Categories
< All Topics
Print

Getting Started

System Oriented Functional Programming Language (SOFPL) is a specific structure that interprets each line separately and outputs the result. Shorten the functions performed in normal programming languages. For example, you can do the functions you can do in 10 lines with a line. It is up to you to determine what you will do in 9 lines. 🙂

In addition, you can start the process on the system, you can open the port and start data transfer. Simple socket software and transaction management functions are available and developed.

Getting Started

First get olang(.exe) file or go get -v gitlab.com/olanguage/olang and run olang(.exe) (-r) <filename> (-d=true [debug mode])

Thats it.

Create file with example.ola;

show("Hello Galaxy!")

Run file with olang;

olang example.ola

Result;

"Hello Galaxy!"

Thats all.

Files


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")
show(result)

Run:

$ olang test.ola

Output:

Hello, Oytun! Welcome to Olang

Module Loading


O Language files is to simple. File extension “.olm”. Let’s start by examining the programming language example.

hello.olm (as hello module):

def hello = fn(name){ 
   show("Hello, "+name+"! Welcome to Olang")
 }

load.ola (main file):

load "hello.olm"
 def name = "Oytun";
 hello(name);

Run:

$ olang load.ola

Output:

Hello, Oytun! Welcome to Olang

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
Table of Contents