thinBasic: Basic Programming Language - O2 JIT Compiler / Assembler / Oxygen projecthttp://www.thinbasic.com/community/
Embed compilable code in thinBASIC scripts for critical performance.enSun, 18 Feb 2018 07:00:13 GMTvBulletin5http://www.thinbasic.com/community/images/misc/rss.pngthinBasic: Basic Programming Language - O2 JIT Compiler / Assembler / Oxygen projecthttp://www.thinbasic.com/community/
a very short tour in thinbasic Oxygen modulehttp://www.thinbasic.com/community/showthread.php?12834-a-very-short-tour-in-thinbasic-Oxygen-module&goto=newpost
Mon, 29 Jan 2018 10:31:19 GMTif you have a huge repetitive task such as in the fractals then you need a compiler, fortunately there is an embedded compiler inside thinbasic...if you have a huge repetitive task such as in the fractals then you need a compiler, fortunately there is an embedded compiler inside thinbasic called Oxygen.
how to use it?
by providing a string contains oxygen code to oxygen engine for processing
there are 3 ways to do this:1- using a normal string (the last line should have a new line)
2- using a RawText ....

Code:

string src = RawText
...code here
End RawText

3- by writing Oxygen code in external file and loading the whole file to a string then provide this string to the oxygen processor

to be able to use the examples in the thinbasic distrubution (which is old)
1-remove the word "basic" after the very beginning of the string we want to provide to oxygen processor
2- in the functions inside oxygen replace AT with link , look example O2Functions.tbasic in the package from github above
3-to make a DLL from oxygen you must include RTL32.inc look folder DLL in the package

if you keep these small changes in mind then you will keep enjoying using Oxygen compiler in thinbasic

another small note: we can write strings in oxygen like "this is a string" or `this is a string ` the privilige of using ` ` is that we can use " inside any way we want such as
` thinbasic with "oxygen" `
example:

o2_basic src
If o2_error Then
MsgBox 0,o2_error
Stop
Else
o2_exec
End If

also there is a possibility to use the Console , look example consoleIO.tbasic in C:\thinBasic\SampleScripts\Oxygen\DLLandEXE\CompilingExe
]]>O2 JIT Compiler / Assembler / Oxygen projectprimohttp://www.thinbasic.com/community/showthread.php?12834-a-very-short-tour-in-thinbasic-Oxygen-module