Charles Pegge
21-07-2009, 13:17
A choice of different comment styles including C
Oxygen Update http://community.thinbasic.com/index.php?topic=2517
'--------
'COMMENTS
'========
uses "oxygen"
dim src as string
src ="
#basic
rem traditional comment
' standard basic coomment
; standard assembler comment
// C line comment
/*
C comment
*/
dim a
a=a+1 // c comment
a=a/1 // c comment
a=1+2 /* c comment */ +3
a=1+2 /*
*/ +3
print `OK ` a
"
'msgbox 0,o2_prep src
o2_basic src
if len(o2_error) then
msgbox 0, o2_error : stop
end if
o2_exec
Oxygen Update http://community.thinbasic.com/index.php?topic=2517
'--------
'COMMENTS
'========
uses "oxygen"
dim src as string
src ="
#basic
rem traditional comment
' standard basic coomment
; standard assembler comment
// C line comment
/*
C comment
*/
dim a
a=a+1 // c comment
a=a/1 // c comment
a=1+2 /* c comment */ +3
a=1+2 /*
*/ +3
print `OK ` a
"
'msgbox 0,o2_prep src
o2_basic src
if len(o2_error) then
msgbox 0, o2_error : stop
end if
o2_exec