New pages

From OnixOS
New pages
Hide registered users | Hide bots | Hide redirects
  • 09:57, 11 August 2024Helpers (hist | edit) ‎[2,777 bytes]Tedaryum (talk | contribs) (Created page with "= XML Parser = The xmlp() function is used to parse the XML. It is extremely simple to use. Returns the result as a hash. <code>def result = (xmlp("test.xml")) output(result)</code> Output: <code>...xml content...</code> = URL Fetch/Extract = The urlfetch(<type (GET, POST)>, , ) and urlextract (, ) functions execute URL operations for data retrieval and destructor functions. urlfetch.ola: <code>def olang = (urlfetch("GET","<nowiki>http://o-lang.tk</nowiki>")) def...") Tag: Visual edit
  • 09:57, 11 August 2024Database (hist | edit) ‎[4,763 bytes]Tedaryum (talk | contribs) (Created page with "= Models and Connections = How to make models, connections and migrations. Connections; First we need to define database connection; <code>def db = (database("dbtype","dbstring"))</code> Database type and Database strings are connection types. For example you need sqlite3 connection; <code>def db = (database("sqlite3","sqlite_database_example.db"))</code> Now ready to connect models and databases; <code>def modeldef = (model(db, "modelname", {....table definitions})...") Tag: Visual edit
  • 09:56, 11 August 2024Dialers (hist | edit) ‎[646 bytes]Tedaryum (talk | contribs) (Created page with "Dialer functions can automatically initiate a socket or provide sockete access and automatically communicate over a socket. dial_serve.ola (dial serve example): <code>sock socket "tcp4" "9050" "0.0.0.0"; def messages = { "ping”: "pong”, "call”: "Calling… NOPE! :)”, "help”: "Not helpfull!” } sock_listen(socket, messages)</code> The 9050 port is ready to connect. dial_client.ol (dial client example): <code>sock socket "tcp4" "9050...") Tag: Visual edit
  • 09:56, 11 August 2024Make Router (hist | edit) ‎[1,223 bytes]Tedaryum (talk | contribs) (Created page with "The router socket structure was created with the intention of creating an API over the HTTP/S protocol and exchanging data through the socket. In web based projects it is possible to write web server quickly and easily. In addition, the API can be created in micro-services. hello.olm (as hello module): <code>def hello = fn(name){ return ("Hello, "+name+"! Welcome to Olang") }</code> router.ol (as router): <code>load "hello.olm" def config = { <nowiki> </nowiki>...") Tag: Visual edit
  • 09:55, 11 August 2024Advanced (hist | edit) ‎[28 bytes]Tedaryum (talk | contribs) (Created page with "Advanced Section") Tag: Visual edit
  • 09:54, 11 August 2024Definitions (hist | edit) ‎[1,037 bytes]Tedaryum (talk | contribs) (Created page with "How to make definitions and details = Definition = Simple casting definition; <code>def something = something;</code> = Hash = Simple casting hashes; <code>def pyramid = {"x":10, "y":10, "z":10} pyramid["x"] 10</code> = Array = Simple casting arrays; <code>def triangle = [10,20,30] triangle[1] 10</code> = Integer = Simple casting integer; <code>def zero = 0 0</code> = String = Simple casting string; <code>def name = "Oytun" "Oytun"</code> = Functions = S...") Tag: Visual edit
  • 09:54, 11 August 2024Functions (hist | edit) ‎[10,815 bytes]Tedaryum (talk | contribs) (Created page with "= itostr = Convert integer to string. But strings and integers not connect with plus iteration (Ex: “Hello”+0 => imposible need to convert 0 or “Hello” to string or integer in IRL[In real life]). For example; <code>def i = 0; # => 0 def str = itostr(i) # => "0"</code> = len = Gives something to length. Sometimes usefull for length calculation. Easy to use. Example; <code>def arr = [1,2,3,4,5] def lenArr = len(arr) # => 5</code> = first = All objects gi...") Tag: Visual edit
  • 09:53, 11 August 2024Tokens (hist | edit) ‎[1,681 bytes]Tedaryum (talk | contribs) (Created page with "= fn = <code>Function: def object = fn(...){....}</code> = def = <code>def object = something</code> = true = <code>Boolean: true</code> = false = <code>Boolean: false</code> = if = <code>if(...boolean){ .... }</code> = else = <code>else{ .... }</code> = return = <code>def pi = fn(x){** return "3.14" **}</code> = input = <code>input(object)</code> = output = <code>output(object)</code> = loop = <code>loop(condition){...result} def result = (loop(condi...") Tag: Visual edit
  • 09:52, 11 August 2024Types (hist | edit) ‎[1,421 bytes]Tedaryum (talk | contribs) (Created page with "= Process = Simple casting system processes; <code>proc procname "command" "work path" ["arg1","arg2"]</code> = Socket = Simple casting system sockets; <code>sock socketname "type" "port" "ip"</code> = Literals = The literal definition is used to describe the system invariants. The literal definition is used to describe the system invariants. These definitions maintain their validity throughout the system. Similar to definitions. There is no need to use a parameter...") Tag: Visual edit
  • 09:50, 11 August 2024Module Loading (hist | edit) ‎[412 bytes]Tedaryum (talk | contribs) (Created page with "O Language files is to simple. File extension “.olm”. Let’s start by examining the programming language example. hello.olm (as hello module): <code>def hello = fn(name){ output("Hello, "+name+"! Welcome to Olang") }</code> load.ola (main file): <code>load "hello.olm" def name = "Oytun"; hello(name);</code> Run: <code>$ olang load.ola</code> Output: <code>Hello, Oytun! Welcome to Olang</code>") Tag: Visual edit
  • 09:49, 11 August 2024Files (hist | edit) ‎[839 bytes]Tedaryum (talk | contribs) (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>") Tag: Visual edit
  • 09:49, 11 August 2024Getting Started (hist | edit) ‎[2,630 bytes]Tedaryum (talk | contribs) (Created page with "First get <code>olang(.exe)</code> file or <code>go get -v gitlab.com/olanguage/olang</code> and run <code>olang(.exe) (-r) <filename> (-d=true [debug mode])</code> Thats it. Create file with example.ola; <code>output("Hello Galaxy!")</code> Run file with olang; <code>olang example.ola</code> Result; <code>"Hello Galaxy!"</code> Thats all.") Tag: Visual edit
  • 20:05, 10 August 2024License (hist | edit) ‎[1,869 bytes]Tedaryum (talk | contribs) (Created page with "= GNU General Public License (GPL) v3 for OnixOS = == Overview == OnixOS is licensed under the GNU General Public License version 3 (GPL-3.0). This means that OnixOS is free software: you can redistribute it and/or modify it under the terms of the GPL-3.0. == License Terms == === 0. Introduction === This License reflects the principles of freedom to share and change free software— to make sure the software is free for all its users. == 1. General Terms == You ca...") Tag: Visual edit: Switched
  • 20:00, 10 August 2024Contribute (hist | edit) ‎[2,386 bytes]Tedaryum (talk | contribs) (Created page with "OnixOS is an open-source project that welcomes contributions from the community. Whether you're a developer, designer, or just interested in helping out, there are many ways you can contribute to the OnixOS project. == Ways to Contribute == === Code Contributions === If you're interested in contributing code, you can start by visiting our [http://gitlab.com/onix-os GitLab repository]. Here, you'll find the source code for OnixOS, along with issues, feature requests, an...") Tag: Visual edit
  • 19:58, 10 August 2024Community (hist | edit) ‎[24 bytes]Tedaryum (talk | contribs) (Created page with "Welcome To The Community") Tag: Visual edit
  • 19:13, 10 August 2024O Language (hist | edit) ‎[911 bytes]Tedaryum (talk | contribs) (Created page with "O Language Page Not Ready :(") Tag: Visual edit
  • 19:13, 10 August 2024Documentation (hist | edit) ‎[362 bytes]Tedaryum (talk | contribs) (Created page with "Documentation Page Not Ready :(") Tag: Visual edit
  • 19:00, 10 August 2024Download (hist | edit) ‎[2,147 bytes]Tedaryum (talk | contribs) (Created page with "<a href="https://sourceforge.net/projects/onixos/files/latest/download"><img alt="Download OnixOS" src="https://a.fsdn.com/con/app/sf-download-button" width="276" height="48" srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x" /></a>") Tag: Visual edit: Switched