This invisible portion of the source code will then be excluded from line numbering.
by adding prefix codeCharles
Maybe it would be fun to convert the MY-BASIC interpreter to work with O2Yes John..,this would be very interesting ;)
Maybe it would be fun to convert the MY-BASIC interpreter to work with O2.
Is it a China joke?No is not...
Kent,
Maybe it would be fun to convert the MY-BASIC (http://www.allbasic.info/forum/index.php?topic=221.0) interpreter to work with O2.
John
'
' test compiling by oxygen
'
$filename "myO2compile.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="test_compile_o2.o2bas"
cr=chr(13,10)
s=`includepath "$\inc\"`+cr+
`%filename "testO2.exe"`+cr+
`include "RTL32.inc"`+cr+chr(12)+
getfile f
o2_mode 9 'ascii=1 bstring=8
o2_basic s
print s
if o2_errno
print o2_error
end if
print "now you push execute testo2.exe"
' test_compile_o2.o2bas
type mydatatype
string name
int n
single x,y
end type
mydatatype d[10]={
"thor",2,100,100,
"hulk",2,100,150,
"x-men",4,100,250,
"ironman",3,100,570}
i=3
print d[ i ].name " " d[ i ].n " " d[ i ].x "," d[ i ].y