This requires Oxygen.dll to be in the same folder and inc/RTL32.inc
It reads source code from t.o2bas and compiles to t.exe
You can add code to the start of the source string, followed by a page-feed character (ascii 12). This invisible portion of the source code will then be excluded from line numbering.
$filename "co2a.exe"
librarypath "$\"
includepath "$\inc\"
include "RTL32.inc"
extern lib "oxygen.dll"
! o2_mode (sys m)
! o2_basic (string s)
! o2_exec (optional sys p) as sys
! o2_error () as string
! o2_errno () as sys
end extern
o2_mode 9 'ascii=1 bstring=8
f="t.o2bas"
cr=chr(13,10)
s=`includepath "$\inc\"`+cr+
`%filename "t.exe"`+cr+
`include "RTL32.inc"`+cr+chr(12)+
getfile f
o2_mode 9 'ascii=1 bstring=8
o2_basic s
if o2_errno
print o2_error
end if