CloudFlare suffered a massive security issue affecting all of its customers, including Rosetta Code. All passwords not changed since February 19th 2017 have been expired, and session cookie longevity will be reduced until late March.--Michael Mol (talk) 05:15, 25 February 2017 (UTC)


From Rosetta Code
This programming language may be used to instruct a computer to perform a task.
Official website
Type expression: Implicit, Explicit
See Also:

Listed below are all of the tasks on Rosetta Code which have been solved using OxygenBasic.
Your Help Needed
If you know OxygenBasic, please write code for some of the tasks not implemented in OxygenBasic.

OxygenBasic is a compilable language in the BASIC genre supporting object-oriented programming, and containing features of C. Its earliest origins was as a macro Assembly code language in 2009, but subsequently acquired all the features of a high-level language.

The philosophy underlying OxygenBasic is to facilitate clean coding, with low syntax noise and few coding restrictions. The core language and compiler size are kept to a minimum.


Hello World:

print "Hello World!"


for i=1 to 10
  pr+="Line: " i chr(13) chr(10)
print pr


function cube(double n) as double
  return d*d*d
end function

print cube(3)


class MemoryBank
  string buf
  method store(string s)
    buf += " " s chr(13)
  end method
  method find(string s) as string
    sys a,b
    a=instr buf,s
    if a then
      b=instr a,s,chr(13)
      return mid buf,a,b-a
    end if
  end method
  method clear()
  end method
end class

MemoryBank b ("
shoes LC1
ships LC2
sealing wax LC3
cabbages LC4
kings LC5

print b.find "ships"

Current Status[edit]

The current implementation is available for Microsoft Windows and includes an x86 assembler. It can compile directly to memory, or to 32 bit and 64 bit binaries. Development is currently in Alpha phase. The compiler is a single DLL, and suitable for embedding in other Applications. It has been deployed as a module in thinBasic to support Assembly code and dynamic compiling.

The latest versions can be obtained here, including an IDE and numerous examples: