Installation
Click download link and select your own system or package after setup your development environment path to extracted path. If you need to If you want to do development, you can install golang and extract the codes with this command;
go get -v github.com/olproject/olang
and run
olang(.exe) (-r) (-d=true [debug mode])
Thats it.
Files
Olang files is to simple. Default file extension “.ola”. Let’s start by examining the programming language example.
def hello = fn(name){ return "Hello, "+name+"! Welcome to O-lang!" }
def result = hello("Oytun") show(result)
Run:
$ chmod a+x test.ol $ ./test.ol
or
$ olang test.ol
Output:
Hello, Oytun! Welcome to Olang