Files: Difference between revisions
From OnixOS
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>" |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
Output: | Output: | ||
<code>Hello, Oytun! Welcome to Olang</code> | <code>Hello, Oytun! Welcome to Olang</code> | ||
=== 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 |
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