Files: Difference between revisions
From OnixOS
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
<code>Hello, Oytun! Welcome to Olang</code> | <code>Hello, Oytun! Welcome to Olang</code> | ||
=== File Types === | |||
* Olang Singe File (.ola) - olang/single-file | * Olang Singe File (.ola) - olang/single-file | ||
* Olang Module File (.ols) - olang/scope-file | * Olang Module File (.ols) - olang/scope-file |
Latest revision as of 09:52, 11 August 2024
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